diff --git a/Downstream/Inc/downstream_hid.h b/Downstream/Inc/downstream_hid.h index b011aa8..bd559cf 100644 --- a/Downstream/Inc/downstream_hid.h +++ b/Downstream/Inc/downstream_hid.h @@ -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 diff --git a/Downstream/Src/downstream_hid.c b/Downstream/Src/downstream_hid.c index 859ea8a..1dc717a 100644 --- a/Downstream/Src/downstream_hid.c +++ b/Downstream/Src/downstream_hid.c @@ -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) {