X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.h;h=551eb0ffe7c4774245f4849dde28cf75ecfd032a;hp=8e52e9c4594b6fc1849e652c8d786d0c3ed0e3df;hb=681ca0346ecb3f3da2c45a1a470601f15aad22cf;hpb=51d43664909060e85c943c4d63cc3cff307ceb1d diff --git a/JSAction.h b/JSAction.h index 8e52e9c..551eb0f 100644 --- a/JSAction.h +++ b/JSAction.h @@ -6,24 +6,19 @@ // Copyright 2009 University of Otago. All rights reserved. // -#import -#import +@interface JSAction : NSObject -@interface JSAction : NSObject { - id base; - NSString *name; -} - -@property (assign) void* cookie; -@property (assign) int index; +@property (assign) IOHIDElementCookie cookie; @property (copy) NSArray *children; -@property (strong) id base; +@property (weak) id base; @property (copy) NSString *name; @property (assign) BOOL active; @property (readonly) float magnitude; +@property (readonly) NSString *uid; + +- (id)initWithName:(NSString *)newName base:(JSAction *)newBase; - (void)notifyEvent:(IOHIDValueRef)value; -- (NSString *)stringify; - (id)findSubActionForValue:(IOHIDValueRef)value; @end