From: Robert "M." Love <rml@tech9.net>
To: vojtech@suse.cz.laughing@shared-source.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.4.5-ac6: hid-core.c Mouse Wheel Fix
Date: 02 Jun 2001 18:07:02 -0400 [thread overview]
Message-ID: <991519623.771.2.camel@phantasy> (raw)
[-- 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;
}
reply other threads:[~2001-06-02 22:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=991519623.771.2.camel@phantasy \
--to=rml@tech9.net \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz.laughing \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.