Automatically trigger/untrigger targets based on setting the 'running' property;...
[enjoyable.git] / JSAction.m
1 //
2 // JSAction.m
3 // Enjoy
4 //
5 // Created by Sam McCall on 4/05/09.
6 //
7
8 #import "JSAction.h"
9
10 @implementation JSAction
11
12 @synthesize cookie;
13 @synthesize index;
14 @synthesize children;
15 @synthesize base;
16 @synthesize name;
17 @synthesize active;
18
19 - (id)findSubActionForValue:(IOHIDValueRef)value {
20 return NULL;
21 }
22
23 - (NSString *)stringify {
24 return [NSString stringWithFormat: @"%@~%p", [base stringify], cookie];
25 }
26
27 - (void)notifyEvent:(IOHIDValueRef)value {
28 [self doesNotRecognizeSelector:_cmd];
29 }
30
31 - (float)magnitude {
32 return 0.f;
33 }
34
35 @end