// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Foundation/Foundation.h>
-#import <IOKit/hid/IOHIDBase.h>
+@interface JSAction : NSObject
-@interface JSAction : NSObject {
- id base;
- NSString *name;
-}
-
-@property (assign) void* cookie;
-@property (assign) int index;
+@property (assign) IOHIDElementCookie cookie;
@property (copy) NSArray *children;
-@property (strong) id base;
+@property (weak) id base;
@property (copy) NSString *name;
@property (assign) BOOL active;
@property (readonly) float magnitude;
+@property (readonly) NSString *uid;
+
+- (id)initWithName:(NSString *)newName base:(JSAction *)newBase;
- (void)notifyEvent:(IOHIDValueRef)value;
-- (NSString *)stringify;
- (id)findSubActionForValue:(IOHIDValueRef)value;
@end