removed key press delay

This commit is contained in:
Michael Starke
2019-01-14 14:46:47 +01:00
parent 4f339ba24e
commit 28f86fb45b

View File

@@ -52,7 +52,7 @@
/* Send the event */ /* Send the event */
CGEventPost(kCGHIDEventTap, pressKey); CGEventPost(kCGHIDEventTap, pressKey);
/* TODO: Evaluate postToPid */ /* TODO: Evaluate postToPid */
usleep(0.025 * NSEC_PER_MSEC); //usleep(0.025 * NSEC_PER_MSEC);
CGEventPost(kCGHIDEventTap, releaseKey); CGEventPost(kCGHIDEventTap, releaseKey);
CFRelease(pressKey); CFRelease(pressKey);