Commit 4ef3ed62 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] mousedev PS/@ emulation fix

From: Dmitry Torokhov <dtor_core@ameritech.net>

correctly perform PS/2 (mousedev) emulation for touchpads generating
absolute events (do not stop with the first client)
parent c5b7a7d2
......@@ -148,14 +148,16 @@ static void mousedev_event(struct input_handle *handle, unsigned int type, unsig
break;
case EV_KEY:
if (code == BTN_TOUCH && test_bit(BTN_TOOL_FINGER, handle->dev->keybit)) {
/* Handle touchpad data */
list->touch = value;
if (!list->touch)
list->pkt_count = 0;
break;
}
switch (code) {
case BTN_TOUCH: /* Handle touchpad data */
if (test_bit(BTN_TOOL_FINGER, handle->dev->keybit)) {
list->touch = value;
if (!list->touch)
list->pkt_count = 0;
return;
}
case BTN_TOUCH:
case BTN_0:
case BTN_FORWARD:
case BTN_LEFT: index = 0; break;
......
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