Big rename part 2: 'config' etc. to 'mapping.
[enjoyable.git] / TargetMouseScroll.m
index 6595628..8f87c02 100644 (file)
@@ -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;
     }
 }
 
-- (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) {