5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
9 #import <Cocoa/Cocoa.h>
10 #import <IOKit/hid/IOHIDLib.h>
12 @interface JSAction
: NSObject
{
20 @
property(readwrite
) int usage
;
21 @
property(readwrite
) void* cookie
;
22 @
property(readonly
) int index
;
23 @
property(copy
) NSArray
* subActions
;
24 @
property(readwrite
, strong
) id base
;
25 @
property(copy
) NSString
* name
;
26 @
property(readonly
) BOOL active
;
28 -(void) notifyEvent
: (IOHIDValueRef
) value
;
29 -(NSString
*) stringify
;
30 -(NSArray
*) subActions
;
31 -(id
) findSubActionForValue
: (IOHIDValueRef
) value
;