X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.h;h=0e2584726f52cffb7d0ddaa00f779c975d486f60;hp=30e99b9cd71e68a4a649a9d170589d7742a5f0ae;hb=635728b6f6775384f7cbc212a4b05198ef024c15;hpb=20ccd38576bb48caf8e4129a8c86fe04819d83bc diff --git a/JSAction.h b/JSAction.h index 30e99b9..0e25847 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 (nonatomic, assign) IOHIDElementCookie cookie; +@property (nonatomic, copy) NSArray *children; +@property (nonatomic, weak) id base; +@property (nonatomic, copy) NSString *name; +@property (nonatomic, assign) BOOL active; +@property (nonatomic, readonly) float magnitude; +@property (readonly) NSString *uid; -@property (assign) void* cookie; -@property (assign) int index; -@property (copy) NSArray *children; -@property (strong) id base; -@property (copy) NSString *name; -@property (readonly) BOOL active; +- (id)initWithName:(NSString *)newName base:(JSAction *)newBase; - (void)notifyEvent:(IOHIDValueRef)value; -- (NSString *)stringify; - (id)findSubActionForValue:(IOHIDValueRef)value; @end