Forked Enjoy, mouse movement
[enjoyable.git] / JSAction.h
diff --git a/JSAction.h b/JSAction.h
new file mode 100644 (file)
index 0000000..50e37e2
--- /dev/null
@@ -0,0 +1,33 @@
+//
+//  JSAction.h
+//  Enjoy
+//
+//  Created by Sam McCall on 4/05/09.
+//  Copyright 2009 University of Otago. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import <IOKit/hid/IOHIDLib.h>
+
+@interface JSAction : NSObject {
+       int usage, index;
+       void* cookie;
+       NSArray* subActions;
+       id base;
+       NSString* name;
+}
+
+@property(readwrite) int usage;
+@property(readwrite) void* cookie;
+@property(readonly) int index;
+@property(readonly) NSArray* subActions;
+@property(readwrite, retain) id base;
+@property(readonly) NSString* name;
+@property(readonly) BOOL active;
+
+-(void) notifyEvent: (IOHIDValueRef) value;
+-(NSString*) stringify;
+-(NSArray*) subActions;
+-(id) findSubActionForValue: (IOHIDValueRef) value;
+
+@end