projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Scrolling, mouse scope, icon
[enjoyable.git]
/
Target.m
diff --git
a/Target.m
b/Target.m
index
35ebfc2
..
ec2d6a1
100644
(file)
--- a/
Target.m
+++ b/
Target.m
@@
-19,6
+19,10
@@
return [TargetMouseMove unstringifyImpl:components];
if([typeTag isEqualToString:@"mbtn"])
return [TargetMouseBtn unstringifyImpl:components];
return [TargetMouseMove unstringifyImpl:components];
if([typeTag isEqualToString:@"mbtn"])
return [TargetMouseBtn unstringifyImpl:components];
+ if([typeTag isEqualToString:@"mscroll"])
+ return [TargetMouseScroll unstringifyImpl:components];
+ if([typeTag isEqualToString:@"mtoggle"])
+ return [TargetToggleMouseScope unstringifyImpl:components];
NSParameterAssert(NO);
return NULL;
NSParameterAssert(NO);
return NULL;
@@
-29,27
+33,22
@@
return NULL;
}
return NULL;
}
--(void) trigger {
+-(void) trigger
: (JoystickController *)jc
{
[self doesNotRecognizeSelector:_cmd];
}
[self doesNotRecognizeSelector:_cmd];
}
--(void) untrigger {
+-(void) untrigger
: (JoystickController *)jc
{
// no-op by default
}
// no-op by default
}
--(
BOOL) running
{
-
return running
;
+-(
void) update: (JoystickController *) jc
{
+
[self doesNotRecognizeSelector:_cmd]
;
}
}
--(void) setRunning: (BOOL) newRunning {
- if(newRunning == running)
- return;
- if(newRunning)
- [self trigger];
- else
- [self untrigger];
- running = newRunning;
+
+-(BOOL) isContinuous {
+ return false;
}
}
-@synthesize inputValue;
+@synthesize inputValue
, running
;
@end
@end