JSAction base property should be eweak as it creates a circular reference with base...
[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
22 - (void)notifyEvent:(IOHIDValueRef)value;
23 - (NSString *)stringify;
24 - (id)findSubActionForValue:(IOHIDValueRef)value;
25
26 @end