From d748d8a7496ea436a7e643245dbefb7b9c99d0cb Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sun, 25 Oct 2020 11:32:28 +0000 Subject: refactor: Replace superseded key names Replace deprecated key names (LCTL, NUM_0, NUM_1). Replace abbreviated names with fully qualified names (LCTL, RGUI, NUM_0, NUM_1). Follow-up to #21. --- app/src/behaviors/behavior_hold_tap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/behaviors/behavior_hold_tap.c') diff --git a/app/src/behaviors/behavior_hold_tap.c b/app/src/behaviors/behavior_hold_tap.c index d190148..c53750a 100644 --- a/app/src/behaviors/behavior_hold_tap.c +++ b/app/src/behaviors/behavior_hold_tap.c @@ -429,7 +429,8 @@ static int position_state_changed_listener(const struct zmk_event_header *eh) { } static inline bool only_mods(struct keycode_state_changed *ev) { - return ev->usage_page == HID_USAGE_KEY && ev->keycode >= LCTL && ev->keycode <= RGUI; + return ev->usage_page == HID_USAGE_KEY && ev->keycode >= LEFT_CONTROL && + ev->keycode <= RIGHT_GUI; } static int keycode_state_changed_listener(const struct zmk_event_header *eh) { -- cgit v1.2.3