X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Joystick.h;h=99587a7f50ba4bc292c8ecca16fb8a841ad51bb9;hp=587ad3fdc1bcfe7a115bd4229eb16d30eda28779;hb=d2b45b2c32dcc7c3cc553b62252ca48842e08d48;hpb=8ab26ba60a5cf895797e24a432949a1c11622fed diff --git a/Joystick.h b/Joystick.h index 587ad3f..99587a7 100644 --- a/Joystick.h +++ b/Joystick.h @@ -9,26 +9,17 @@ #import @class JSAction; -@interface Joystick : NSObject { - int vendorId; - int productId; - int index; - NSString* productName; - IOHIDDeviceRef device; - NSMutableArray* children; - NSString* name; -} +@interface Joystick : NSObject -@property(readwrite) int vendorId; -@property(readwrite) int productId; -@property(readwrite) int index; -@property(readwrite, copy) NSString* productName; -@property(readwrite) IOHIDDeviceRef device; -@property(readonly) NSArray* children; -@property(readonly) NSString* name; +@property (assign) int vendorId; +@property (assign) int productId; +@property (assign) int index; +@property (copy) NSString *productName; +@property (assign) IOHIDDeviceRef device; +@property (readonly) NSArray *children; +@property (readonly) NSString *name; -(void) populateActions; --(void) invalidate; -(id) handlerForEvent: (IOHIDValueRef) value; -(id)initWithDevice: (IOHIDDeviceRef) newDevice; -(JSAction*) actionForEvent: (IOHIDValueRef) value;