Commit d2f4012f authored by Yotam Medini's avatar Yotam Medini Committed by Dmitry Torokhov

Input: alps - fix old protocol decoding

Correct touchpad left & right keys assignments for ALPS_OLDPROTO
that were swapped. Old protocol is used on UMAX ActionBook-530T
notebook.
Signed-off-by: default avatarYotam Medini <yotam.medini@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e107b8ee
...@@ -100,8 +100,8 @@ static void alps_process_packet(struct psmouse *psmouse, struct pt_regs *regs) ...@@ -100,8 +100,8 @@ static void alps_process_packet(struct psmouse *psmouse, struct pt_regs *regs)
} }
if (priv->i->flags & ALPS_OLDPROTO) { if (priv->i->flags & ALPS_OLDPROTO) {
left = packet[2] & 0x08; left = packet[2] & 0x10;
right = packet[2] & 0x10; right = packet[2] & 0x08;
middle = 0; middle = 0;
x = packet[1] | ((packet[0] & 0x07) << 7); x = packet[1] | ((packet[0] & 0x07) << 7);
y = packet[4] | ((packet[3] & 0x07) << 7); y = packet[4] | ((packet[3] & 0x07) << 7);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment