2.4.5-ac6: hid-core.c Mouse Wheel Fix
PATCH 1/1 2.4.5-ac6: hid-core.c Mouse Wheel Fix
since the merging of the new USB HID code (hid.c -> hid-core.c) in ac4, the mouse wheel has been broken (losing events).
this patch, by Micheal <[email protected]>, fixes the problem.
Alan, please consider applying to the next -ac release.
thanks,
Signature · 3 lines
Robert M. Love [email protected] [email protected]
drivers/usb/hid-core.c +0 -0
@@ -773,10 +773,11 @@
if (HID_MAIN_ITEM_VARIABLE & field->flags) {- if ((field->flags & HID_MAIN_ITEM_RELATIVE) && !value[n])
- continue;
- if (value[n] == field->value[n])
- continue;
+ if (field->flags & HID_MAIN_ITEM_RELATIVE) {
+ if (!value[n]) continue;
+ } else {
+ if (value[n] == field->value[n]) continue;
+ }
hid_process_event(hid, field, &field->usage[n], value[n]); continue; }