X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.h;h=551eb0ffe7c4774245f4849dde28cf75ecfd032a;hp=9de469659445cc69113046868a6df3ae1326cf72;hb=794561a4606fa9e31e3b2b077891f5b1e6084698;hpb=e68c19b5923618b763543c74bf8dd6f85d4d323e diff --git a/JSAction.h b/JSAction.h index 9de4696..551eb0f 100644 --- a/JSAction.h +++ b/JSAction.h @@ -6,23 +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 (copy) NSArray *subActions; -@property (strong) id base; +@property (assign) IOHIDElementCookie cookie; +@property (copy) NSArray *children; +@property (weak) id base; @property (copy) NSString *name; -@property (readonly) BOOL active; +@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