picofuse-objc

LinuxInput.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include "NXDeviceManager.h"
8 
40 @interface LinuxInput : NXObject <NXEventSource, NXInputDevice> {
41 @private
42  NXString *_path;
43  id _target;
44  SEL _selector;
45  void *_device;
46  NXSize _size;
47  uint16_t _pointerRotation;
48  float _pointerSpeed;
49  BOOL _exclusive;
50 }
51 
61 + (LinuxInput *)inputWithPath:(NXString *)path target:(id)target selector:(SEL)selector;
62 
68 - (BOOL)setTarget:(id)target selector:(SEL)selector;
69 
74 - (void)setPointerSize:(NXSize)size;
75 
79 - (NXString *)path;
80 
88 - (void)setPointerSize:(NXSize)size rotation:(uint16_t)rotation;
89 
94 - (void)setPointerSpeed:(float)speed;
95 
101 - (void)setExclusive:(BOOL)exclusive;
102 
106 - (BOOL)isAttached;
107 
108 @end
Something which produces events, such as a timer, while it&#39;s attached to the application with -[NXApp...
Definition: NXEventSource.h:17
A size, in pixels.
Definition: NXGeometry.h:21
Defines NXDeviceManager, which makes the devices a program&#39;s built for, as they&#39;re described in JSON...
BOOL isAttached()
Returns YES while it&#39;s attached, which is while its device is open.
A Linux input device, such as a keyboard or a touchscreen, as an event source of the application...
Definition: LinuxInput.h:40
bool BOOL
A Boolean value.
Definition: runtime.h:60
A string of UTF-8 text.
Definition: NXString.h:53
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
const struct objc_selector * SEL
A pointer to a method selector.
Definition: runtime.h:23
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
NXString * path()
Returns the device&#39;s path.