diff options
author | ReFil <[email protected]> | 2023-12-04 23:24:05 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-04 18:24:05 -0500 |
commit | 9bacaffe6244fd00329f959700e2fd52b241c520 (patch) | |
tree | 2a7d55cb5de97a970a583c41ea971cf57b1f3089 /app/include | |
parent | 8ee3467adff4cd0ced085ee7778c99d42b1889c8 (diff) | |
download | zmk-9bacaffe6244fd00329f959700e2fd52b241c520.tar.gz zmk-9bacaffe6244fd00329f959700e2fd52b241c520.zip |
feat(hid): Add KConfig option for higher NKRO usages
By default the maximum NKRO usage is set to maximise compatibility, but some keys dont work, this adds the ability to use those extended keys, at the cost of compatibiltity
Co-authored-by: Cem Aksoylar <[email protected]>
Co-authored-by: Pete Johanson <[email protected]>
Diffstat (limited to 'app/include')
-rw-r--r-- | app/include/zmk/hid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/include/zmk/hid.h b/app/include/zmk/hid.h index 3f7e61bcd4..30534b02d2 100644 --- a/app/include/zmk/hid.h +++ b/app/include/zmk/hid.h @@ -17,7 +17,12 @@ #include <dt-bindings/zmk/hid_usage.h> #include <dt-bindings/zmk/hid_usage_pages.h> +#if IS_ENABLED(CONFIG_ZMK_HID_KEYBOARD_NKRO_EXTENDED_REPORT) +#define ZMK_HID_KEYBOARD_NKRO_MAX_USAGE HID_USAGE_KEY_KEYBOARD_LANG8 +#else #define ZMK_HID_KEYBOARD_NKRO_MAX_USAGE HID_USAGE_KEY_KEYPAD_EQUAL +#endif + #define ZMK_HID_MOUSE_NUM_BUTTONS 0x05 // See https://www.usb.org/sites/default/files/hid1_11.pdf section 6.2.2.4 Main Items |