projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Formal protocol for the interface shared between Joysticks and JSActions, use new...
[enjoyable.git]
/
JSAction.h
diff --git
a/JSAction.h
b/JSAction.h
index
0e25847
..
dc00a8d
100644
(file)
--- a/
JSAction.h
+++ b/
JSAction.h
@@
-6,7
+6,9
@@
// Copyright 2009 University of Otago. All rights reserved.
//
// Copyright 2009 University of Otago. All rights reserved.
//
-@interface JSAction : NSObject
+#import "NJActionPathElement.h"
+
+@interface JSAction : NSObject <NJActionPathElement>
@property (nonatomic, assign) IOHIDElementCookie cookie;
@property (nonatomic, copy) NSArray *children;
@property (nonatomic, assign) IOHIDElementCookie cookie;
@property (nonatomic, copy) NSArray *children;
@@
-16,7
+18,7
@@
@property (nonatomic, readonly) float magnitude;
@property (readonly) NSString *uid;
@property (nonatomic, readonly) float magnitude;
@property (readonly) NSString *uid;
-- (id)initWithName:(NSString *)newName base:(
JSAction *
)newBase;
+- (id)initWithName:(NSString *)newName base:(
id <NJActionPathElement>
)newBase;
- (void)notifyEvent:(IOHIDValueRef)value;
- (id)findSubActionForValue:(IOHIDValueRef)value;
- (void)notifyEvent:(IOHIDValueRef)value;
- (id)findSubActionForValue:(IOHIDValueRef)value;