projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up TargetController formatting and public API.
[enjoyable.git]
/
JSAction.m
diff --git
a/JSAction.m
b/JSAction.m
index
84d1ea8
..
0cb9855
100644
(file)
--- a/
JSAction.m
+++ b/
JSAction.m
@@
-14,22
+14,30
@@
@synthesize children;
@synthesize base;
@synthesize name;
@synthesize children;
@synthesize base;
@synthesize name;
+@synthesize active;
+
+- (id)initWithName:(NSString *)newName base:(JSAction *)newBase {
+ if ((self = [super init])) {
+ self.name = newName;
+ self.base = newBase;
+ }
+ return self;
+}
- (id)findSubActionForValue:(IOHIDValueRef)value {
return NULL;
}
- (id)findSubActionForValue:(IOHIDValueRef)value {
return NULL;
}
-- (NSString *)
stringify
{
- return [NSString stringWithFormat:
@"%@~%p", [base stringify], cooki
e];
+- (NSString *)
uid
{
+ return [NSString stringWithFormat:
@"%@~%@", [self.base uid], self.nam
e];
}
- (void)notifyEvent:(IOHIDValueRef)value {
[self doesNotRecognizeSelector:_cmd];
}
}
- (void)notifyEvent:(IOHIDValueRef)value {
[self doesNotRecognizeSelector:_cmd];
}
-- (BOOL)active {
- [self doesNotRecognizeSelector:_cmd];
- return NO;
+- (float)magnitude {
+ return 0.f;
}
@end
}
@end