forked from kofal.net/zmk
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user