From: Joe Wreschnig Date: Thu, 28 Feb 2013 19:07:42 +0000 (+0100) Subject: This isn't C++. X-Git-Tag: version-1.0~87 X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=44fe6f649589488b367eee7ffff240cecf8669ad;p=enjoyable.git This isn't C++. --- 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;