summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLars Kellogg-Stedman <lars@oddbit.com>2020-04-11 09:05:42 -0400
committerLars Kellogg-Stedman <lars@oddbit.com>2020-04-11 10:02:18 -0400
commit8797e3347f892d39880f4f92967b1fd664ca5dbe (patch)
treec1de8100e8e8c9c052d469a2ed18d996be9c6998 /tools
parent44cf7988c04e7390a713b351e72d75b1708de20c (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/hid_report_descriptors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hid_report_descriptors.py b/tools/hid_report_descriptors.py
index 92c962d59..07ed26744 100644
--- a/tools/hid_report_descriptors.py
+++ b/tools/hid_report_descriptors.py
@@ -68,9 +68,9 @@ def keyboard_hid_descriptor(report_id):
0x81, 0x02, # Input (Data, Variable, Absolute)
0x81, 0x01, # Input (Constant)
0x19, 0x00, # Usage Minimum (0)
- 0x29, 101, # Usage Maximum (101)
+ 0x29, 0xDD, # Usage Maximum (221)
0x15, 0x00, # Logical Minimum (0)
- 0x25, 101, # Logical Maximum (101)
+ 0x25, 0xDD, # Logical Maximum (221)
0x75, 0x08, # Report Size (8)
0x95, 0x06, # Report Count (6)
0x81, 0x00, # Input (Data, Array)