X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.h;h=5f61191b0b5f15a29361c00c6fc302e2cf888c0e;hp=1e60cf2e11f3ec9bb86d80e13e5f225918e9fbd9;hb=44fe6f649589488b367eee7ffff240cecf8669ad;hpb=5a79f9f05829ca1aecc70aeadb8c980ec4f3556d diff --git a/JSAction.h b/JSAction.h index 1e60cf2..5f61191 100644 --- a/JSAction.h +++ b/JSAction.h @@ -6,28 +6,19 @@ // Copyright 2009 University of Otago. All rights reserved. // -#import -#import +@interface JSAction : NSObject -@interface JSAction : NSObject { - int usage, index; - void* cookie; - NSArray *subActions; - id base; - NSString *name; -} +@property (assign) void *cookie; +@property (copy) NSArray *children; +@property (weak) id base; +@property (copy) NSString *name; +@property (assign) BOOL active; +@property (readonly) float magnitude; +@property (readonly) NSString *uid; -@property(readwrite) int usage; -@property(readwrite) void* cookie; -@property(readonly) int index; -@property(copy) NSArray* subActions; -@property(readwrite, strong) id base; -@property(copy) NSString* name; -@property(readonly) BOOL active; +- (id)initWithName:(NSString *)newName base:(JSAction *)newBase; --(void) notifyEvent: (IOHIDValueRef) value; --(NSString*) stringify; --(NSArray*) subActions; --(id) findSubActionForValue: (IOHIDValueRef) value; +- (void)notifyEvent:(IOHIDValueRef)value; +- (id)findSubActionForValue:(IOHIDValueRef)value; @end