X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.h;fp=JSAction.h;h=50e37e2311a1092bd44b8747b4d82d36f831788d;hp=0000000000000000000000000000000000000000;hb=530009447c5bbd360ac5023979cffc6d32a28df3;hpb=5f07baa8cb03a2f6aa06338bfeb31dad3c3ca29f diff --git a/JSAction.h b/JSAction.h new file mode 100644 index 0000000..50e37e2 --- /dev/null +++ b/JSAction.h @@ -0,0 +1,33 @@ +// +// JSAction.h +// Enjoy +// +// Created by Sam McCall on 4/05/09. +// Copyright 2009 University of Otago. All rights reserved. +// + +#import +#import + +@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