[Core] Refactor keyevent_t for 1ms timing resolution (#15847)

This commit is contained in:
Stefan Kerkmann 2023-04-03 10:33:45 +02:00 committed by GitHub
parent 15eb4de2cf
commit 712d48a591
22 changed files with 176 additions and 123 deletions

View file

@ -96,7 +96,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
key.row = 1;
key.col = 0;
}
action_exec((keyevent_t){.key = key, .pressed = true, .time = (timer_read() | 1)});
action_exec((keyevent_t){.key = key, .pressed = false, .time = (timer_read() | 1)});
action_exec(MAKE_KEYEVENT(key.row, key.col, true));
action_exec(MAKE_KEYEVENT(key.row, key.col, false));
return true;
}