This isn't C++.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 28 Feb 2013 19:07:42 +0000 (20:07 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 28 Feb 2013 19:07:42 +0000 (20:07 +0100)
TargetKeyboard.m
TargetMouseMove.m

index d19c65f039df547d4818d34c7e8f6349a70832eb..0d0583ef9731099e9460b9226a1aed944bb1929e 100644 (file)
 }
 
 -(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);
 }
index d2bc94307d1a2e9aa62960ad92865348f02eed3e..f75f70bd2d74a3fa92db4fc80da75b47239c67a7 100644 (file)
@@ -15,7 +15,7 @@
 }
 
 -(BOOL) isContinuous {
-    return true;
+    return YES;
 }
 
 @synthesize dir;