Clean up JoystickController. Modernize more Objective-C syntax. Remove direct public...
[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
18 - (id)findSubActionForValue:(IOHIDValueRef)value {
19 return NULL;
20 }
21
22 - (NSString *)stringify {
23 return [NSString stringWithFormat: @"%@~%p", [base stringify], cookie];
24 }
25
26 - (void)notifyEvent:(IOHIDValueRef)value {
27 [self doesNotRecognizeSelector:_cmd];
28 }
29
30 - (BOOL)active {
31 [self doesNotRecognizeSelector:_cmd];
32 return NO;
33 }
34
35 @end