Reduce delay when sending key-press events

This commit is contained in:
Michael Starke
2019-01-02 19:00:05 +01:00
parent fef9f5fdeb
commit 988cf3051c

View File

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