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.
This commit is contained in:
innovaker
2020-10-25 11:32:28 +00:00
committed by Pete Johanson
parent a65295c2a7
commit d748d8a749
3 changed files with 8 additions and 7 deletions

View File

@@ -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) {