Messages in this thread Patch in this message | | | Subject | [PATCH 7/8] Fix handling of rotated Synaptics touchpads. | Date | Thu, 25 Sep 2003 18:50:12 +0200 | From | Vojtech Pavlik <> |
| |
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/
| |