refactor(keys): Unify usage page.
* Remove need for separate `&cp` behavior, but keep it for now for backward compat. * Refactor sensor inc/dec as well.
This commit is contained in:
parent
5f83568a93
commit
eff1b8223b
20 changed files with 474 additions and 492 deletions
|
|
@ -429,8 +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 >= LEFT_CONTROL &&
|
||||
ev->keycode <= RIGHT_GUI;
|
||||
return ev->usage_page == HID_USAGE_KEY && ev->keycode >= HID_USAGE_KEY_KEYBOARD_LEFTCONTROL &&
|
||||
ev->keycode <= HID_USAGE_KEY_KEYBOARD_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