From 5d6d9594212073ca52b80a1a949510187af47b13 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Sun, 9 Apr 2023 22:41:32 +1000 Subject: Fix up via keymap builds. (#20383) * Fix up via keymap builds. - Usages of old IS_PRESSED. * Fix up bad code. * Fix up bad code. --- keyboards/dailycraft/stickey4/keymaps/via/keymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'keyboards/dailycraft/stickey4') diff --git a/keyboards/dailycraft/stickey4/keymaps/via/keymap.c b/keyboards/dailycraft/stickey4/keymaps/via/keymap.c index 30d8ad188e..30de32fa60 100644 --- a/keyboards/dailycraft/stickey4/keymaps/via/keymap.c +++ b/keyboards/dailycraft/stickey4/keymaps/via/keymap.c @@ -67,25 +67,25 @@ keyevent_t encoder2_cw = { }; void matrix_scan_user(void) { - if (IS_PRESSED(encoder1_ccw)) { + if (encoder1_ccw.pressed) { encoder1_ccw.pressed = false; encoder1_ccw.time = timer_read(); action_exec(encoder1_ccw); } - if (IS_PRESSED(encoder1_cw)) { + if (encoder1_cw.pressed) { encoder1_cw.pressed = false; encoder1_cw.time = timer_read(); action_exec(encoder1_cw); } - if (IS_PRESSED(encoder2_ccw)) { + if (encoder2_ccw.pressed) { encoder2_ccw.pressed = false; encoder2_ccw.time = timer_read(); action_exec(encoder2_ccw); } - if (IS_PRESSED(encoder2_cw)) { + if (encoder2_cw.pressed) { encoder2_cw.pressed = false; encoder2_cw.time = timer_read(); action_exec(encoder2_cw); -- cgit v1.2.3