X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=NJOutputMouseButton.m;h=d5b1f16e940baade744c9dddcaed2699decf49a3;hp=ad44b39db2b820dacdff0726b962d960d2930031;hb=b8c30e0c06effb8f4a937378e5c4cf8a22f40c59;hpb=717d100a4657927592d0ccfc16c8cd33f80c0609 diff --git a/NJOutputMouseButton.m b/NJOutputMouseButton.m index ad44b39..d5b1f16 100644 --- a/NJOutputMouseButton.m +++ b/NJOutputMouseButton.m @@ -19,12 +19,12 @@ + (NJOutput *)outputDeserialize:(NSDictionary *)serialization withMappings:(NSArray *)mappings { - NJOutputMouseButton *output = [[NJOutputMouseButton alloc] init]; + NJOutputMouseButton *output = [[NJOutputMouseButton alloc] init]; output.button = [serialization[@"button"] intValue]; - return output; + return output; } --(void) trigger { +- (void)trigger { CGFloat height = NSScreen.mainScreen.frame.size.height; NSPoint mouseLoc = NSEvent.mouseLocation; CGEventType eventType = (_button == kCGMouseButtonLeft) ? kCGEventLeftMouseDown : kCGEventRightMouseDown; @@ -36,7 +36,7 @@ CFRelease(click); } --(void) untrigger { +- (void)untrigger { CGFloat height = NSScreen.mainScreen.frame.size.height; NSPoint mouseLoc = NSEvent.mouseLocation; CGEventType eventType = (_button == kCGMouseButtonLeft) ? kCGEventLeftMouseUp : kCGEventRightMouseUp;