* [PATCH] 2.4.5-ac6: hid-core.c Mouse Wheel Fix
@ 2001-06-02 22:07 Robert M. Love
0 siblings, 0 replies; only message in thread
From: Robert M. Love @ 2001-06-02 22:07 UTC (permalink / raw)
To: vojtech; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 300 bytes --]
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 <leahcim@ntlworld.com>, fixes the problem.
Alan, please consider applying to the next -ac release.
thanks,
--
Robert M. Love
rml@ufl.edu
rml@tech9.net
[-- Attachment #2: Type: text/plain, Size: 549 bytes --]
--- linux.vanilla/drivers/usb/hid-core.c Sat Jun 2 21:47:35 2001
+++ linux/drivers/usb/hid-core.c Sat Jun 2 21:46:00 2001
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-06-02 22:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-02 22:07 [PATCH] 2.4.5-ac6: hid-core.c Mouse Wheel Fix Robert M. Love
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.