Rename 'stringify' to 'uid' where it pertains to unique action IDs.
[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 #import <Foundation/Foundation.h>
10 #import <IOKit/hid/IOHIDBase.h>
11
12 @interface JSAction : NSObject
13
14 @property (assign) void *cookie;
15 @property (assign) int index;
16 @property (copy) NSArray *children;
17 @property (weak) id base;
18 @property (copy) NSString *name;
19 @property (assign) BOOL active;
20 @property (readonly) float magnitude;
21 @property (readonly) NSString *uid;
22
23 - (id)initWithName:(NSString *)newName base:(JSAction *)newBase;
24
25 - (void)notifyEvent:(IOHIDValueRef)value;
26 - (id)findSubActionForValue:(IOHIDValueRef)value;
27
28 @end