X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetMouseScroll.m;h=ac3b852511d37a92f7ae744518e7b62bfadee5e9;hp=6595628002913477619858d8264a941826ab34ad;hb=f864d363128de19fc6591b77ae9226b34166d715;hpb=f563321aec9e13b8479ab3b890a9179f095a8b17 diff --git a/TargetMouseScroll.m b/TargetMouseScroll.m index 6595628..ac3b852 100644 --- a/TargetMouseScroll.m +++ b/TargetMouseScroll.m @@ -37,13 +37,13 @@ } } -- (BOOL)update:(JoystickController *)jc { +- (BOOL)update:(NJInputController *)jc { if (fabsf(self.magnitude) < 0.01f) { sign = 0; return NO; // dead zone } - // If the action crossed over High/Low, this target is done. + // If the input crossed over High/Low, this target is done. if (!sign) sign = self.magnitude < 0 ? -1 : 1; else if (sign / self.magnitude < 0) {