mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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: Yotam Medini <yotam.medini@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
e107b8ee7e
commit
d2f4012f15
@ -100,8 +100,8 @@ static void alps_process_packet(struct psmouse *psmouse, struct pt_regs *regs)
|
||||
}
|
||||
|
||||
if (priv->i->flags & ALPS_OLDPROTO) {
|
||||
left = packet[2] & 0x08;
|
||||
right = packet[2] & 0x10;
|
||||
left = packet[2] & 0x10;
|
||||
right = packet[2] & 0x08;
|
||||
middle = 0;
|
||||
x = packet[1] | ((packet[0] & 0x07) << 7);
|
||||
y = packet[4] | ((packet[3] & 0x07) << 7);
|
||||
|
Loading…
Reference in New Issue
Block a user