Support HID mouse reports with an ID header (Lenovo)

USG_0.9
Robert Fisk 6 years ago
parent a2edc90302
commit 688f2e673c

@ -51,6 +51,7 @@
#define HID_ITEM_REPORT_SIZE 0x74 //'global' report size
#define HID_ITEM_REPORT_COUNT 0x94 //'global' report count
#define HID_ITEM_REPORT_ID 0x84
#define HID_ITEM_INPUT 0x80 //'main' input
#define HID_ITEM_INPUT_ABS 0x02

@ -152,6 +152,10 @@ static HAL_StatusTypeDef Downstream_HID_Mouse_ParseReportDescriptor(void)
currentReportCount = ItemData;
break;
case HID_ITEM_REPORT_ID:
currentReportBitIndex += 8; //Rudimentary support for a single report ID
break;
case HID_ITEM_INPUT:
switch (currentUsagePage)
{

Loading…
Cancel
Save