Scrolling, mouse scope, icon
[enjoyable.git] / Target.m
index 35ebfc2..ec2d6a1 100644 (file)
--- a/Target.m
+++ b/Target.m
         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;
        return NULL;
 }
 
--(void) trigger {
+-(void) trigger: (JoystickController *)jc {
        [self doesNotRecognizeSelector:_cmd];
 }
 
--(void) untrigger {
+-(void) untrigger: (JoystickController *)jc {
        // 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