lkml.org 
[lkml]   [2003]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: 2.6.0-mm1 - Patch 2/2 - mousedev-dont-stop
Date
===================================================================

ChangeSet@1.1525, 2003-12-25 03:56:28-05:00, dtor_core@ameritech.net
Input: correctly perform PS/2 (mousedev) emulation for touchpads
generating absolute events (do not stop with the first
client)


mousedev.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)

===================================================================


diff -Nru a/drivers/input/mousedev.c b/drivers/input/mousedev.c
--- a/drivers/input/mousedev.c Thu Dec 25 03:57:50 2003
+++ b/drivers/input/mousedev.c Thu Dec 25 03:57:50 2003
@@ -148,14 +148,16 @@
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:59    [from the cache]
©2003-2011 Jasper Spaans