Allow clicking on the key field directly.
[enjoyable.git] / Joystick.h
1 //
2 // Joystick.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 @class JSAction;
10
11 @interface Joystick : NSObject
12
13 @property (assign) int index;
14 @property (copy) NSString *productName;
15 @property (assign) IOHIDDeviceRef device;
16 @property (copy) NSArray *children;
17 @property (readonly) NSString *name;
18 @property (readonly) NSString *uid;
19
20 - (id)initWithDevice:(IOHIDDeviceRef)device;
21 - (id)handlerForEvent:(IOHIDValueRef)value;
22 - (JSAction *)actionForEvent:(IOHIDValueRef)value;
23
24 @end