fixed hotkeys repeating on every keypress

This commit is contained in:
Lexi Quinn 2021-09-17 05:52:09 +10:00
parent 12ecfbe05a
commit dae9fe8a10
2 changed files with 1 additions and 0 deletions

View File

1
keys.c
View File

@ -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)