X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;ds=sidebyside;f=JSAction.m;h=8576b2fdc6af36e4a95dfc55db90f762957dc960;hb=51d43664909060e85c943c4d63cc3cff307ceb1d;hp=a0fab80fde6461ebadd721b28f87cda7647d76f7;hpb=530009447c5bbd360ac5023979cffc6d32a28df3;p=enjoyable.git diff --git a/JSAction.m b/JSAction.m index a0fab80..8576b2f 100644 --- a/JSAction.m +++ b/JSAction.m @@ -5,23 +5,31 @@ // Created by Sam McCall on 4/05/09. // +#import "JSAction.h" + @implementation JSAction -@synthesize usage, cookie, index, subActions, base, name; +@synthesize cookie; +@synthesize index; +@synthesize children; +@synthesize base; +@synthesize name; +@synthesize active; --(id) findSubActionForValue: (IOHIDValueRef) value { - return NULL; +- (id)findSubActionForValue:(IOHIDValueRef)value { + return NULL; } --(NSString*) stringify { - return [[NSString alloc] initWithFormat: @"%@~%d",[base stringify],(int)cookie]; +- (NSString *)stringify { + return [NSString stringWithFormat: @"%@~%p", [base stringify], cookie]; } --(void) notifyEvent: (IOHIDValueRef) value { - [self doesNotRecognizeSelector:_cmd]; + +- (void)notifyEvent:(IOHIDValueRef)value { + [self doesNotRecognizeSelector:_cmd]; } --(BOOL) active { - [self doesNotRecognizeSelector:_cmd]; - return NO; + +- (float)magnitude { + return 0.f; } @end