fixed hotkeys repeating on every keypress
This commit is contained in:
parent
12ecfbe05a
commit
dae9fe8a10
1
keys.c
1
keys.c
@ -11,6 +11,7 @@ bool logger_proc(unsigned int level, const char *format, ...) {
|
||||
void dispatch_proc(uiohook_event * const event) {
|
||||
switch (event->type) {
|
||||
case EVENT_KEY_PRESSED:
|
||||
buf = -1;
|
||||
if (event->data.keyboard.keycode == km.START)
|
||||
buf = K_START;
|
||||
if (event->data.keyboard.keycode == km.STOP)
|
||||
|
Loading…
Reference in New Issue
Block a user