forked from kofal.net/zmk
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:
@@ -10,6 +10,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HID_EXT_USAGE(page, id) ((page << 16) | id)
|
||||
#define HID_EXT_USAGE_ID(ext) (ext & 0xFFFF)
|
||||
#define HID_EXT_USAGE_PAGE(ext) (ext >> 16)
|
||||
|
||||
/* WARNING: DEPRECATED from dt-bindings/zmk/keys.h */
|
||||
#define USAGE_KEYPAD (0x07) // WARNING: DEPRECATED (DO NOT USE)
|
||||
#define USAGE_CONSUMER (0x0C) // WARNING: DEPRECATED (DO NOT USE)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user