Give accurate names to most of the items in the nib. Tweak button appearance on the...
[enjoyable.git] / NJDevice.h
1 //
2 // NJDevice.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 @class NJInput;
12
13 @interface NJDevice : NSObject <NJInputPathElement>
14
15 @property (nonatomic, assign) int index;
16 @property (nonatomic, copy) NSString *productName;
17 @property (nonatomic, assign) IOHIDDeviceRef device;
18 @property (nonatomic, copy) NSArray *children;
19 @property (nonatomic, readonly) NSString *name;
20 @property (readonly) NSString *uid;
21
22 - (id)initWithDevice:(IOHIDDeviceRef)device;
23 - (NJInput *)handlerForEvent:(IOHIDValueRef)value;
24 - (NJInput *)inputForEvent:(IOHIDValueRef)value;
25
26 @end