Show an error message if opening input devices fail. Move real vs. configuration...
[enjoyable.git] / JSAction.h
1 //
2 // JSAction.h
3 // Enjoy
4 //
5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
7 //
8
9 @interface JSAction : NSObject
10
11 @property (assign) void *cookie;
12 @property (assign) int index;
13 @property (copy) NSArray *children;
14 @property (weak) id base;
15 @property (copy) NSString *name;
16 @property (assign) BOOL active;
17 @property (readonly) float magnitude;
18 @property (readonly) NSString *uid;
19
20 - (id)initWithName:(NSString *)newName base:(JSAction *)newBase;
21
22 - (void)notifyEvent:(IOHIDValueRef)value;
23 - (id)findSubActionForValue:(IOHIDValueRef)value;
24
25 @end