Forked Enjoy, mouse movement
[enjoyable.git] / JSAction.m
diff --git a/JSAction.m b/JSAction.m
new file mode 100644 (file)
index 0000000..a0fab80
--- /dev/null
@@ -0,0 +1,27 @@
+//
+//  JSAction.m
+//  Enjoy
+//
+//  Created by Sam McCall on 4/05/09.
+//
+
+@implementation JSAction
+
+@synthesize usage, cookie, index, subActions, base, name;
+
+-(id) findSubActionForValue: (IOHIDValueRef) value {
+       return NULL;
+}
+
+-(NSString*) stringify {
+       return [[NSString alloc] initWithFormat: @"%@~%d",[base stringify],(int)cookie];
+}
+-(void) notifyEvent: (IOHIDValueRef) value {
+       [self doesNotRecognizeSelector:_cmd];
+}
+-(BOOL) active {
+       [self doesNotRecognizeSelector:_cmd];
+       return NO;
+}
+
+@end