Skip to content

Commit

Permalink
Make Extended NKRO configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Nov 7, 2023
1 parent d7a9d54 commit 2e18c9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ config ZMK_HID_KEYBOARD_REPORT_SIZE

endif

if ZMK_HID_REPORT_TYPE_NKRO

config ZMK_HID_KEYBOARD_EXTENDED_REPORT
bool "Enable extended NKRO report"
default n

endif

config ZMK_HID_CONSUMER_REPORT_SIZE
int "# Consumer Keys Reportable"
default 6
Expand Down
4 changes: 4 additions & 0 deletions app/include/zmk/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
#include <dt-bindings/zmk/hid_usage.h>
#include <dt-bindings/zmk/hid_usage_pages.h>

#if IS_ENABLED(CONFIG_ZMK_HID_KEYBOARD_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 COLLECTION_REPORT 0x03

Expand Down

0 comments on commit 2e18c9c

Please sign in to comment.