X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/205b35d131a1cc8196786de4370cb90fec17835e..05fcf7e2a79bebb978d4aeaef26b12f70c6826f8:/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h diff --git a/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h b/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h index ae6871c57..cbbac3ee5 100644 --- a/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h +++ b/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h @@ -43,6 +43,9 @@ #include "MouseHostWithParser.h" /* Macros: */ + /** HID Report Descriptor Usage for a Mouse */ + #define USAGE_MOUSE 0x02 + /** HID Report Descriptor Usage Page value for a toggle button */ #define USAGE_PAGE_BUTTON 0x09 @@ -55,6 +58,9 @@ /** HID Report Descriptor Usage value for a Y axis movement */ #define USAGE_Y 0x31 + /** HID Report Descriptor Usage value for a Scroll Wheel movement */ + #define USAGE_SCROLL_WHEEL 0x38 + /* Enums: */ /** Enum for the possible return codes of the GetHIDReportData() function. */ enum MouseHostWithParser_GetHIDReportDataCodes_t @@ -86,6 +92,6 @@ /* Function Prototypes: */ uint8_t GetHIDReportData(void); - bool CALLBACK_HIDParser_FilterHIDReportItem(HID_ReportItem_Attributes_t* CurrentItemAttributes); + bool CALLBACK_HIDParser_FilterHIDReportItem(HID_ReportItem_t* CurrentItem); #endif