Fix up via keymap builds. (#20383)

* Fix up via keymap builds.

- Usages of old IS_PRESSED.

* Fix up bad code.

* Fix up bad code.
This commit is contained in:
Nick Brassel 2023-04-09 22:41:32 +10:00 committed by GitHub
parent 6b3fa0f655
commit 70d7874ba9
12 changed files with 71 additions and 71 deletions

View file

@ -100,7 +100,7 @@ void encoder_action_register(uint8_t index, bool clockwise) {
keyevent_t encoder_event = (keyevent_t) {
.key = clockwise ? ENC_CW : ENC_CCW,
.pressed = true,
.time = timer_read()
.time = timer_read(),
.type = KEY_EVENT
};
encoder_state = (clockwise ^ 1) | (clockwise << 1);