]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix ATSAM's USB HID descriptor to support higher heycodes
authorDrashna Jaelre <drashna@live.com>
Tue, 11 Dec 2018 04:22:51 +0000 (20:22 -0800)
committerskullydazed <skullydazed@users.noreply.github.com>
Fri, 12 Apr 2019 20:55:59 +0000 (13:55 -0700)
Assuming I understand this correctly, this should set the max scancode to E7 (RGUI), which is the last listed code in the main list (everything else use for internal QMK/TMK stuff).

tmk_core/protocol/arm_atsam/usb/udi_hid_kbd.c

index c263ac4aa1d9da18306d535d3a7a8d24a42edd7b..467a284a4ae9703c06b49f21b5ad7a3190cd8ade 100644 (file)
@@ -109,9 +109,9 @@ UDC_DESC_STORAGE udi_hid_kbd_report_desc_t udi_hid_kbd_report_desc = {
         0x81, 0x02,     //   Input (Data, Variable, Absolute)
         0x81, 0x01,     //   Input (Constant)
         0x19, 0x00,     //   Usage Minimum (0)
-        0x29, 0x65,     //   Usage Maximum (101)
+        0x29, 0xE7,     //   Usage Maximum (231)
         0x15, 0x00,     //   Logical Minimum (0)
-        0x25, 0x65,     //   Logical Maximum (101)
+        0x25, 0xE7,     //   Logical Maximum (231)
         0x75, 0x08,     //   Report Size (8)
         0x95, 0x06,     //   Report Count (6)
         0x81, 0x00,     //   Input (Data, Array)