X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=TargetMouseScroll.m;h=8f87c02e32557ee7d0b99a2e2c20dc03b580b177;hp=6595628002913477619858d8264a941826ab34ad;hb=e2a4d830dd9817f6a515a3b1b6aa152d3bb98c2b;hpb=1bb3f553caac2b6b74380bd20ddc4bb1ff22abb2 diff --git a/TargetMouseScroll.m b/TargetMouseScroll.m index 6595628..8f87c02 100644 --- a/TargetMouseScroll.m +++ b/TargetMouseScroll.m @@ -20,7 +20,7 @@ } + (Target *)targetDeserialize:(NSDictionary *)serialization - withConfigs:(NSArray *)configs { + withMappings:(NSArray *)mappings { TargetMouseScroll *target = [[TargetMouseScroll alloc] init]; target.amount = [serialization[@"amount"] intValue]; return target; @@ -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) {