From 1c5e30099018d04a6e3d829be78b195ef5c81c6c Mon Sep 17 00:00:00 2001 From: d3v1c3nv11 Date: Mon, 6 Nov 2017 15:53:01 +0200 Subject: Adding Wheel mouse support --- lufa_addwheelmouse.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lufa_addwheelmouse.patch diff --git a/lufa_addwheelmouse.patch b/lufa_addwheelmouse.patch new file mode 100644 index 0000000..b843d49 --- /dev/null +++ b/lufa_addwheelmouse.patch @@ -0,0 +1,25 @@ +--- LUFA/Drivers/USB/Class/Common/HIDClassCommon.h ++++ LUFA/Drivers/USB/Class/Common/HIDClassCommon.h +@@ -505,13 +505,6 @@ + HID_RI_REPORT_COUNT(8, 0x02), \ + HID_RI_REPORT_SIZE(8, (((MinAxisVal >= -128) && (MaxAxisVal <= 127)) ? 8 : 16)), \ + HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | (AbsoluteCoords ? HID_IOF_ABSOLUTE : HID_IOF_RELATIVE)), \ +- HID_RI_USAGE(8, 0x38), \ +- HID_RI_LOGICAL_MINIMUM(8, -127), \ +- HID_RI_LOGICAL_MAXIMUM(8, 127), \ +- HID_RI_PHYSICAL_MINIMUM(8, -1), \ +- HID_RI_PHYSICAL_MAXIMUM(8, 1), \ +- HID_RI_REPORT_SIZE(8, 0x08), \ +- HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_RELATIVE), \ + HID_RI_END_COLLECTION(0), \ + HID_RI_END_COLLECTION(0) + +@@ -660,7 +653,6 @@ + uint8_t Button; /**< Button mask for currently pressed buttons in the mouse. */ + int8_t X; /**< Current delta X movement of the mouse. */ + int8_t Y; /**< Current delta Y movement on the mouse. */ +- int8_t Wheel; + } ATTR_PACKED USB_MouseReport_Data_t; + + /** \brief Standard HID Boot Protocol Keyboard Report. + -- cgit v1.2.3