diff options
author | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-10-27 17:42:00 +0000 |
---|---|---|
committer | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-10-27 22:55:40 +0000 |
commit | c402e953f6e9655898cd45af9b120d2a45dd45e0 (patch) | |
tree | 6561e1f27d8eb0a20206f8fe9c686c4ed81d33a8 /app/include | |
parent | 8ce7d8de0133242d5896333add10be9ba2ae9363 (diff) |
feat(hid): Make keypad report boot friendly
Add missing byte to make keypad report boot friendly.
Diffstat (limited to 'app/include')
-rw-r--r-- | app/include/zmk/hid.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/include/zmk/hid.h b/app/include/zmk/hid.h index d09ffde..1ce5cc9 100644 --- a/app/include/zmk/hid.h +++ b/app/include/zmk/hid.h @@ -59,6 +59,19 @@ static const u8_t zmk_hid_report_desc[] = { /* USAGE_PAGE (Keypad) */ HID_GI_USAGE_PAGE, USAGE_GEN_DESKTOP_KEYPAD, + /* REPORT_SIZE (8) */ + HID_GI_REPORT_SIZE, + 0x08, + /* REPORT_COUNT (1) */ + HID_GI_REPORT_COUNT, + 0x01, + /* INPUT (Cnst,Var,Abs) */ + HID_MI_INPUT, + 0x03, + + /* USAGE_PAGE (Keypad) */ + HID_GI_USAGE_PAGE, + USAGE_GEN_DESKTOP_KEYPAD, /* LOGICAL_MINIMUM (0) */ HID_GI_LOGICAL_MIN(1), 0x00, @@ -131,6 +144,7 @@ static const u8_t zmk_hid_report_desc[] = { struct zmk_hid_keypad_report_body { zmk_mod_flags modifiers; + u8_t _reserved; u8_t keys[ZMK_HID_KEYPAD_NKRO_SIZE]; } __packed; |