Remove useless items in menubar.
[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 <Cocoa/Cocoa.h>
10 @class JSAction;
11
12 @interface Joystick : NSObject {
13 int vendorId;
14 int productId;
15 int index;
16 NSString* productName;
17 IOHIDDeviceRef device;
18 NSMutableArray* children;
19 NSString* name;
20 }
21
22 @property(readwrite) int vendorId;
23 @property(readwrite) int productId;
24 @property(readwrite) int index;
25 @property(readwrite, copy) NSString* productName;
26 @property(readwrite) IOHIDDeviceRef device;
27 @property(readonly) NSArray* children;
28 @property(readonly) NSString* name;
29
30 -(void) populateActions;
31 -(void) invalidate;
32 -(id) handlerForEvent: (IOHIDValueRef) value;
33 -(id)initWithDevice: (IOHIDDeviceRef) newDevice;
34 -(JSAction*) actionForEvent: (IOHIDValueRef) value;
35
36 @end