[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

@ -37,7 +37,8 @@ static void exec_encoder_action(uint8_t index, bool clockwise, bool pressed) {
keyevent_t encoder_event = (keyevent_t) {
.key = clockwise ? encoder_cw[index] : encoder_ccw[index],
.pressed = pressed,
.time = (timer_read() | 1)
.time = timer_read(),
.type = KEY_EVENT
};
// clang-format on
action_exec(encoder_event);