Show an error message if opening input devices fail. Move real vs. configuration...
[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)initWithName:(NSString *)newName base:(JSAction *)newBase {
20 if ((self = [super init])) {
21 self.name = newName;
22 self.base = newBase;
23 }
24 return self;
25 }
26
27 - (id)findSubActionForValue:(IOHIDValueRef)value {
28 return NULL;
29 }
30
31 - (NSString *)uid {
32 return [NSString stringWithFormat:@"%@~%@", [self.base uid], self.name];
33 }
34
35 - (void)notifyEvent:(IOHIDValueRef)value {
36 [self doesNotRecognizeSelector:_cmd];
37 }
38
39 - (float)magnitude {
40 return 0.f;
41 }
42
43 @end