8000 Fix maximum keycode in keyboard HID descriptor · adafruit/circuitpython@aeb0351 · GitHub
[go: up one dir, main page]

Skip to content

Commit aeb0351

Browse files
committed
Fix maximum keycode in keyboard HID descriptor
The HID descriptor reported by circuitpython erroneously limited the maximum keycode to 101, which prevented circuitpython from sending a number of otherwise valid keycodes. Closes #274
1 parent 44cf798 commit aeb0351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/hid_report_descriptors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def keyboard_hid_descriptor(report_id):
6868
0x81, 0x02, # Input (Data, Variable, Absolute)
6969
0x81, 0x01, # Input (Constant)
7070
0x19, 0x00, # Usage Minimum (0)
71-
0x29, 101, # Usage Maximum (101)
71+
0x29, 0xDD, # Usage Maximum (101)
7272
0x15, 0x00, # Logical Minimum (0)
73-
0x25, 101, # Logical Maximum (101)
73+
0x25, 0xDD, # Logical Maximum (101)
7474
0x75, 0x08, # Report Size (8)
7575
0x95, 0x06, # Report Count (6)
7676
0x81, 0x00, # Input (Data, Array)

0 commit comments

Comments
 (0)
0