X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=Classes%2FNJOutputMouseButton.m;h=e01e76372f2bbfe42bb890c0604593b69c42d411;hb=a3d6f991d110dcccb70e137f43cbafc60f7ecee7;hp=c9fe0eb13e64de6320b6713b0169ba89331889a9;hpb=4dabc5c754efa54adb2dc57063c7294b1c2e4654;p=enjoyable.git diff --git a/Classes/NJOutputMouseButton.m b/Classes/NJOutputMouseButton.m index c9fe0eb..e01e763 100644 --- a/Classes/NJOutputMouseButton.m +++ b/Classes/NJOutputMouseButton.m @@ -37,7 +37,7 @@ } + (NJOutput *)outputDeserialize:(NSDictionary *)serialization - withMappings:(NSArray *)mappings { + withMappings:(id )mappings { NJOutputMouseButton *output = [[NJOutputMouseButton alloc] init]; output.button = [serialization[@"button"] intValue]; return output; @@ -81,22 +81,4 @@ CFRelease(click); } -- (int)humanIndexedButton { - switch (_button) { - case kCGMouseButtonLeft: return 0; - case kCGMouseButtonCenter: return 1; - case kCGMouseButtonRight: return 2; - default: return 0; - } -} - -- (void)setHumanIndexedButton:(int)humanIndexedButton { - switch (humanIndexedButton) { - case 0: _button = kCGMouseButtonLeft; break; - case 1: _button = kCGMouseButtonCenter; break; - case 2: _button = kCGMouseButtonRight; break; - default: _button = kCGMouseButtonLeft; - } -} - @end