X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/f1199200e167a737a4676378da184387e543830c..05fcf7e2a79bebb978d4aeaef26b12f70c6826f8:/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h diff --git a/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h b/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h index b24885544..cbbac3ee5 100644 --- a/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h +++ b/Demos/Host/LowLevel/MouseHostWithParser/HIDReport.h @@ -37,11 +37,15 @@ #define _HID_REPORT_H_ /* Includes: */ - #include // USB Functionality + #include + #include #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 @@ -54,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 @@ -85,4 +92,6 @@ /* Function Prototypes: */ uint8_t GetHIDReportData(void); + bool CALLBACK_HIDParser_FilterHIDReportItem(HID_ReportItem_t* CurrentItem); + #endif