Some more renames.
[enjoyable.git] / Classes / NJInput.h
1 //
2 // NJInput.h
3 // Enjoy
4 //
5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
7 //
8
9 #import "NJInputPathElement.h"
10
11 @interface NJInput : NJInputPathElement
12
13 #define NJINPUT_DID(name, index) [[NSString alloc] initWithFormat:@"%s %d", name, index]
14 #define NJINPUT_NAME(name, index) [[NSString alloc] initWithFormat:name, index]
15
16 - (id)initWithName:(NSString *)name
17 eid:(NSString *)eid
18 element:(IOHIDElementRef)element
19 parent:(NJInputPathElement *)parent;
20
21 @property (nonatomic, readonly) IOHIDElementCookie cookie;
22 @property (nonatomic, assign) BOOL active;
23 @property (nonatomic, assign) float magnitude;
24
25 - (void)notifyEvent:(IOHIDValueRef)value;
26 - (id)findSubInputForValue:(IOHIDValueRef)value;
27
28 @end