projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Index hat switch names. Remove JSAction index properties entirely, once the name...
[enjoyable.git]
/
JSAction.h
diff --git
a/JSAction.h
b/JSAction.h
index
8e52e9c
..
5f61191
100644
(file)
--- a/
JSAction.h
+++ b/
JSAction.h
@@
-6,24
+6,19
@@
// Copyright 2009 University of Otago. All rights reserved.
//
// 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) void *cookie;
@property (copy) NSArray *children;
@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 (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;
- (void)notifyEvent:(IOHIDValueRef)value;
-- (NSString *)stringify;
- (id)findSubActionForValue:(IOHIDValueRef)value;
@end
- (id)findSubActionForValue:(IOHIDValueRef)value;
@end