X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.h;h=dc00a8d8749eca6f84c6c3f30ebc5a50b21936f1;hp=94d56f012583e1451f39014b6db0b2857324d10c;hb=f563321aec9e13b8479ab3b890a9179f095a8b17;hpb=25dd74a4a34f4ba7ec797360bd8f92cbd7bc758e diff --git a/JSAction.h b/JSAction.h index 94d56f0..dc00a8d 100644 --- a/JSAction.h +++ b/JSAction.h @@ -6,21 +6,19 @@ // Copyright 2009 University of Otago. All rights reserved. // -#import -#import +#import "NJActionPathElement.h" -@interface JSAction : NSObject +@interface JSAction : NSObject -@property (assign) void *cookie; -@property (assign) int index; -@property (copy) NSArray *children; -@property (weak) id base; -@property (copy) NSString *name; -@property (assign) BOOL active; -@property (readonly) float magnitude; +@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; -- (id)initWithName:(NSString *)newName base:(JSAction *)newBase; +- (id)initWithName:(NSString *)newName base:(id )newBase; - (void)notifyEvent:(IOHIDValueRef)value; - (id)findSubActionForValue:(IOHIDValueRef)value;