X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.h;h=94d56f012583e1451f39014b6db0b2857324d10c;hp=9de469659445cc69113046868a6df3ae1326cf72;hb=25dd74a4a34f4ba7ec797360bd8f92cbd7bc758e;hpb=e68c19b5923618b763543c74bf8dd6f85d4d323e diff --git a/JSAction.h b/JSAction.h index 9de4696..94d56f0 100644 --- a/JSAction.h +++ b/JSAction.h @@ -9,20 +9,20 @@ #import #import -@interface JSAction : NSObject { - id base; - NSString *name; -} +@interface JSAction : NSObject -@property (assign) void* cookie; +@property (assign) void *cookie; @property (assign) int index; -@property (copy) NSArray *subActions; -@property (strong) id base; +@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