mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-07-16 02:45:35 -04:00
[Core] Refactor keyevent_t
for 1ms timing resolution (#15847)
This commit is contained in:
parent
15eb4de2cf
commit
712d48a591
22 changed files with 176 additions and 123 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue