summaryrefslogtreecommitdiff
path: root/drivers/input/mouse
diff options
context:
space:
mode:
authorVojtech Pavlik <vojtech@twilight.ucw.cz>2002-07-25 03:08:05 +0200
committerVojtech Pavlik <vojtech@twilight.ucw.cz>2002-07-25 03:08:05 +0200
commit03e300376732d5f93af9f94202bb68f4de23483b (patch)
tree395a2b3ead48a2057e59f7c5cb27c2c2f865b9c7 /drivers/input/mouse
parent8c2448000562bd5d430dd1028abf2aceb1b2c3da (diff)
Fix the PS/2 mouse wheel in Explorer PS/2 mode.
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r--drivers/input/mouse/psmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/psmouse.c b/drivers/input/mouse/psmouse.c
index 5b2fec7c93dd..716eb9616c6c 100644
--- a/drivers/input/mouse/psmouse.c
+++ b/drivers/input/mouse/psmouse.c
@@ -142,7 +142,7 @@ static void psmouse_process_packet(struct psmouse *psmouse)
*/
if (psmouse->type == PSMOUSE_IMEX) {
- input_report_rel(dev, REL_WHEEL, (int) (packet[3] & 7) - (int) (packet[2] & 8));
+ 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);
}