X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJOutputMouseScroll.m;h=1ae08cc18ff8a8b8a9049f0cee875ff1cc49d377;hp=6fdc918c6844abfd246ea71713f81785b6bf6330;hb=HEAD;hpb=b14d8429658dd6f3f7b4904301031addb502b22c diff --git a/Classes/NJOutputMouseScroll.m b/Classes/NJOutputMouseScroll.m index 6fdc918..1ae08cc 100644 --- a/Classes/NJOutputMouseScroll.m +++ b/Classes/NJOutputMouseScroll.m @@ -21,8 +21,7 @@ }; } -+ (NJOutput *)outputDeserialize:(NSDictionary *)serialization - withMappings:(id )mappings { ++ (NJOutput *)outputWithSerialization:(NSDictionary *)serialization { NJOutputMouseScroll *output = [[NJOutputMouseScroll alloc] init]; output.direction = [serialization[@"direction"] intValue]; output.speed = [serialization[@"speed"] floatValue]; @@ -53,7 +52,7 @@ } } -- (BOOL)update:(NJDeviceController *)jc { +- (BOOL)update:(NJInputController *)ic { if (self.magnitude < 0.05f) return NO; // dead zone