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:
parent
a65295c2a7
commit
d748d8a749
3 changed files with 8 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue