5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
9 #import "NJInputPathElement.h"
11 @interface NJInput
: NJInputPathElement
13 #define NJINPUT_EID(name, index) [[NSString alloc] initWithFormat:@"%s %d", name, index]
14 #define NJINPUT_NAME(name, index) [[NSString alloc] initWithFormat:name, index]
16 - (id
)initWithName
:(NSString
*)name
18 element
:(IOHIDElementRef
)element
19 parent
:(NJInputPathElement
*)parent
;
21 @
property (nonatomic
, readonly
) IOHIDElementCookie cookie
;
22 @
property (nonatomic
, assign
) BOOL active
;
23 @
property (nonatomic
, assign
) float magnitude
;
25 - (void)notifyEvent
:(IOHIDValueRef
)value
;
26 - (id
)findSubInputForValue
:(IOHIDValueRef
)value
;