From 1ce881b2602225296145c045ac3e4fe0cf4094a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Wed, 2 Mar 2016 11:15:47 +0100 Subject: [PATCH] Clean up the horizontal wheel resolution multiplier section of the mouse HID report descriptor. --- right/usb_descriptor_mouse_report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/right/usb_descriptor_mouse_report.c b/right/usb_descriptor_mouse_report.c index d2f243c..8f62c2b 100644 --- a/right/usb_descriptor_mouse_report.c +++ b/right/usb_descriptor_mouse_report.c @@ -101,8 +101,8 @@ uint8_t UsbMouseReportDescriptor[USB_MOUSE_REPORT_DESCRIPTOR_LENGTH] = { // Horizontal wheel resolution multiplier HID_RI_USAGE(8, HID_RI_USAGE_RESOLUTION_MULTIPLIER), - 0xb4, // POP - 0xb1, 0x02, // FEATURE (Data,Var,Abs) + HID_RI_POP(0), + HID_RI_FEATURE(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE), // Padding 0x35, 0x00, // PHYSICAL_MINIMUM (0) - reset physical