From 44fe6f649589488b367eee7ffff240cecf8669ad Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 28 Feb 2013 20:07:42 +0100 Subject: [PATCH] This isn't C++. --- TargetKeyboard.m | 4 ++-- TargetMouseMove.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TargetKeyboard.m b/TargetKeyboard.m index d19c65f..0d0583e 100644 --- a/TargetKeyboard.m +++ b/TargetKeyboard.m @@ -29,13 +29,13 @@ } -(void) trigger { - CGEventRef keyDown = CGEventCreateKeyboardEvent(NULL, vk, true); + CGEventRef keyDown = CGEventCreateKeyboardEvent(NULL, vk, YES); CGEventPost(kCGHIDEventTap, keyDown); CFRelease(keyDown); } -(void) untrigger { - CGEventRef keyUp = CGEventCreateKeyboardEvent(NULL, vk, false); + CGEventRef keyUp = CGEventCreateKeyboardEvent(NULL, vk, NO); CGEventPost(kCGHIDEventTap, keyUp); CFRelease(keyUp); } diff --git a/TargetMouseMove.m b/TargetMouseMove.m index d2bc943..f75f70b 100644 --- a/TargetMouseMove.m +++ b/TargetMouseMove.m @@ -15,7 +15,7 @@ } -(BOOL) isContinuous { - return true; + return YES; } @synthesize dir; -- 2.30.2