[Core] Refactor keyevent_t
for 1ms timing resolution (#15847)
This commit is contained in:
parent
2d9140af53
commit
fcf8b804ed
49 changed files with 360 additions and 273 deletions
|
@ -111,7 +111,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;
|
||||
}
|
||||
|
|
|
@ -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