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
1e60cf2
..
5f61191
100644
(file)
--- a/
JSAction.h
+++ b/
JSAction.h
@@
-6,28
+6,19
@@
// Copyright 2009 University of Otago. All rights reserved.
//
// Copyright 2009 University of Otago. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-#import <IOKit/hid/IOHIDLib.h>
+@interface JSAction : NSObject
-@
interface JSAction : NSObject {
-
int usage, index
;
-
void* cooki
e;
-
NSArray *subActions
;
-
id bas
e;
-
NSString *nam
e;
-}
+@
property (assign) void *cookie;
+
@property (copy) NSArray *children
;
+
@property (weak) id bas
e;
+
@property (copy) NSString *name
;
+
@property (assign) BOOL activ
e;
+
@property (readonly) float magnitud
e;
+@property (readonly) NSString *uid;
-@property(readwrite) int usage;
-@property(readwrite) void* cookie;
-@property(readonly) int index;
-@property(copy) NSArray* subActions;
-@property(readwrite, strong) id base;
-@property(copy) NSString* name;
-@property(readonly) BOOL active;
+- (id)initWithName:(NSString *)newName base:(JSAction *)newBase;
--(void) notifyEvent: (IOHIDValueRef) value;
--(NSString*) stringify;
--(NSArray*) subActions;
--(id) findSubActionForValue: (IOHIDValueRef) value;
+- (void)notifyEvent:(IOHIDValueRef)value;
+- (id)findSubActionForValue:(IOHIDValueRef)value;
@end
@end