lkml.org 
[lkml]   [2003]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 7/8] Fix handling of rotated Synaptics touchpads.
Date
From
You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/input

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

ChangeSet@1.1347, 2003-09-25 18:29:15+02:00, petero2@telia.com
input: Fix broken handling of rotated Synaptics touchpads.
The infoRot180 and infoPortrait bits are for information
only. The touchpad uses the same X/Y coordinate system
regardless of the orientation, so the software shouldn't
care about these bits.


synaptics.c | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)

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

diff -Nru a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
--- a/drivers/input/mouse/synaptics.c Thu Sep 25 18:37:05 2003
+++ b/drivers/input/mouse/synaptics.c Thu Sep 25 18:37:05 2003
@@ -528,10 +528,7 @@
/* Post events */
if (hw.z > 0) {
input_report_abs(dev, ABS_X, hw.x);
- if (SYN_MODEL_ROT180(priv->model_id))
- input_report_abs(dev, ABS_Y, YMAX_NOMINAL + YMIN_NOMINAL - hw.y);
- else
- input_report_abs(dev, ABS_Y, hw.y);
+ input_report_abs(dev, ABS_Y, YMAX_NOMINAL + YMIN_NOMINAL - hw.y);
}
input_report_abs(dev, ABS_PRESSURE, hw.z);

-
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:48    [W:0.375 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site