X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJOutputMouseButton.m;h=e01e76372f2bbfe42bb890c0604593b69c42d411;hp=c9fe0eb13e64de6320b6713b0169ba89331889a9;hb=b14d8429658dd6f3f7b4904301031addb502b22c;hpb=4dabc5c754efa54adb2dc57063c7294b1c2e4654 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