Skip to content

Commit 78cb04e

Browse files
exivatmk
authored andcommitted
Fix OS X Recognizing keyboard as Mouse/Tablet
Modified the LUFA USB HID Descriptor to change the logical/usage minimums for System Control from 0x01 (Mouse) to 0x81 (System Power Down), this fixes OS X recognizing the Planck as having a mouse and tablet, even with mousekeys off.
1 parent a114714 commit 78cb04e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protocol/lufa/descriptor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM ExtrakeyReport[] =
140140
HID_RI_USAGE(8, 0x80), /* System Control */
141141
HID_RI_COLLECTION(8, 0x01), /* Application */
142142
HID_RI_REPORT_ID(8, REPORT_ID_SYSTEM),
143-
HID_RI_LOGICAL_MINIMUM(16, 0x0001),
143+
HID_RI_LOGICAL_MINIMUM(16, 0x0081),
144144
HID_RI_LOGICAL_MAXIMUM(16, 0x00B7),
145-
HID_RI_USAGE_MINIMUM(16, 0x0001), /* System Power Down */
145+
HID_RI_USAGE_MINIMUM(16, 0x0081), /* System Power Down */
146146
HID_RI_USAGE_MAXIMUM(16, 0x00B7), /* System Display LCD Autoscale */
147147
HID_RI_REPORT_SIZE(8, 16),
148148
HID_RI_REPORT_COUNT(8, 1),

0 commit comments

Comments
 (0)