[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 2d9140af53
commit fcf8b804ed
49 changed files with 360 additions and 273 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);