X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=TargetMouseScroll.m;h=79bc5421f371bfe97e6aecd24882e183247a810d;hb=3a40cba25b9bb38887fe4809277d4c0f73462d12;hp=a1cca9c94d926816c95e8106f5c25cc7345f0bd7;hpb=61f8cdec21ab083b29c22aa11fda54d6005666ca;p=enjoyable.git diff --git a/TargetMouseScroll.m b/TargetMouseScroll.m index a1cca9c..79bc542 100644 --- a/TargetMouseScroll.m +++ b/TargetMouseScroll.m @@ -19,11 +19,11 @@ +(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,