Automatically trigger/untrigger targets based on setting the 'running' property;...
[enjoyable.git] / TargetMouseScroll.m
index a1cca9c..79bc542 100644 (file)
 +(TargetMouseScroll*) unstringifyImpl: (NSArray*) comps {
        NSParameterAssert([comps count] == 2);
        TargetMouseScroll* target = [[TargetMouseScroll alloc] init];
-       [target setHowMuch: [[comps objectAtIndex:1] integerValue]];
+       [target setHowMuch: [comps[1] integerValue]];
        return target;
 }
 
--(void) trigger: (JoystickController *)jc {
+-(void) trigger {
     CGEventRef scroll = CGEventCreateScrollWheelEvent(NULL,
                                                       kCGScrollEventUnitLine,
                                                       1,