Rename 'stringify' to 'uid' where it pertains to unique action IDs.
[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 #import <Foundation/Foundation.h>
10 #import <IOKit/hid/IOHIDBase.h>
11
12 @class JSAction;
13
14 @interface Joystick : NSObject
15
16 @property (assign) int vendorId;
17 @property (assign) int productId;
18 @property (assign) int index;
19 @property (copy) NSString *productName;
20 @property (assign) IOHIDDeviceRef device;
21 @property (copy) NSArray *children;
22 @property (readonly) NSString *name;
23 @property (readonly) NSString *uid;
24
25 - (id)initWithDevice:(IOHIDDeviceRef)device;
26 - (id)handlerForEvent:(IOHIDValueRef)value;
27 - (JSAction *)actionForEvent:(IOHIDValueRef)value;
28
29 @end