From: Vojtech Pavlik <vojtech@suse.cz>
To: "Udo A. Steinberg" <reality@delusion.de>
Cc: Vojtech Pavlik <vojtech@suse.cz>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: PS2 Input Core Support
Date: Wed, 17 Jul 2002 14:29:33 +0200 [thread overview]
Message-ID: <20020717142933.B19385@ucw.cz> (raw)
In-Reply-To: <3D355FD0.9F0E4F8@delusion.de>; from reality@delusion.de on Wed, Jul 17, 2002 at 02:15:12PM +0200
On Wed, Jul 17, 2002 at 02:15:12PM +0200, Udo A. Steinberg wrote:
> Vojtech Pavlik wrote:
> >
> > This is interesting. Can you try the attached test utility? You need to
> > enable CONFIG_INPUT_EVDEV, as well, and use it on /dev/input/evdev0 or
> > 1, depening what's your mouse.
> >
> > I'm wondering whether the scroll events show up or not.
>
> Hello,
>
> They show up in the output. First 4 events are scroll-down, last
> 4 events are scroll-up.
Ok, another patch. :)
diff -Nru a/drivers/input/mouse/psmouse.c b/drivers/input/mouse/psmouse.c
--- a/drivers/input/mouse/psmouse.c Wed Jul 17 12:19:13 2002
+++ b/drivers/input/mouse/psmouse.c Wed Jul 17 12:19:13 2002
@@ -142,7 +142,7 @@
*/
if (psmouse->type == PSMOUSE_IMEX) {
- input_report_rel(dev, REL_WHEEL, (int) (packet[3] & 8) - (int) (packet[2] & 7));
+ input_report_rel(dev, REL_WHEEL, (int) (packet[3] & 7) - (int) (packet[3] & 8));
input_report_key(dev, BTN_SIDE, (packet[3] >> 4) & 1);
input_report_key(dev, BTN_EXTRA, (packet[3] >> 5) & 1);
}
>
> Regards,
> -Udo.
>
> ./evtest /dev/input/event2
> Input driver version is 1.0.0
> Input device ID: bus 0x11 vendor 0x6 product 0x2 version 0x100
> Input device name: "ImExPS/2 Microsoft IntelliMouse Explorer"
> Supported events:
> Event type 1 (Key)
> Event code 272 (LeftBtn)
> Event code 273 (RightBtn)
> Event code 274 (MiddleBtn)
> Event code 275 (SideBtn)
> Event code 276 (ExtraBtn)
> Event type 2 (Relative)
> Event code 0 (X)
> Event code 1 (Y)
> Event code 8 (Wheel)
> Testing ... (interrupt to exit)
> Event: time 1026908021.053509, type 2 (Relative), code 8 (Wheel), value -1
> Event: time 1026908021.607555, type 2 (Relative), code 8 (Wheel), value -1
> Event: time 1026908022.017017, type 2 (Relative), code 8 (Wheel), value -1
> Event: time 1026908022.412833, type 2 (Relative), code 8 (Wheel), value -1
> Event: time 1026908023.241679, type 2 (Relative), code 8 (Wheel), value -7
> Event: time 1026908023.711842, type 2 (Relative), code 8 (Wheel), value -7
> Event: time 1026908024.149266, type 2 (Relative), code 8 (Wheel), value -7
> Event: time 1026908024.529600, type 2 (Relative), code 8 (Wheel), value -7
--
Vojtech Pavlik
SuSE Labs
next prev parent reply other threads:[~2002-07-17 12:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-17 10:13 PS2 Input Core Support Udo A. Steinberg
2002-07-17 10:20 ` Vojtech Pavlik
2002-07-17 11:47 ` Udo A. Steinberg
2002-07-17 12:10 ` Vojtech Pavlik
2002-07-17 12:15 ` Udo A. Steinberg
2002-07-17 12:29 ` Vojtech Pavlik [this message]
2002-07-17 12:41 ` Udo A. Steinberg
2002-07-17 12:44 ` Vojtech Pavlik
2002-07-17 12:54 ` Udo A. Steinberg
2002-07-17 13:00 ` Vojtech Pavlik
2002-07-17 13:08 ` Udo A. Steinberg
2002-07-17 10:23 ` Oliver Graf
-- strict thread matches above, loose matches on Subject: below --
2002-07-17 12:55 Petr Vandrovec
2002-07-17 13:01 ` Vojtech Pavlik
2002-07-17 13:58 ` Gunther Mayer
2002-07-17 14:01 ` Vojtech Pavlik
2002-07-17 13:24 Petr Vandrovec
2002-07-18 10:17 Petr Vandrovec
2002-07-18 12:58 ` Vojtech Pavlik
2002-07-18 13:36 Petr Vandrovec
2002-07-18 13:45 ` Vojtech Pavlik
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=20020717142933.B19385@ucw.cz \
--to=vojtech@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=reality@delusion.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox