5 // Created by Sam McCall on 5/05/09.
8 @implementation JSActionButton
10 @synthesize max, active;
12 -(id)initWithIndex: (int)newIndex andName: (NSString *)newName {
13 if(self= [ super init]) {
16 name = [[NSString alloc] initWithFormat: @"Button %d %@", (index+1), newName];
21 -(id) findSubActionForValue: (IOHIDValueRef) val {
22 if(IOHIDValueGetIntegerValue(val) == max)
27 -(void) notifyEvent: (IOHIDValueRef) value {
28 active = IOHIDValueGetIntegerValue(value) == max;