Set the default min/max for each axis to be in line w/ what we
discovered
Andres Salomon
dilinger at debian.org
Tue Nov 7 22:37:12 EST 2006
Commit: 83c8d0320c301478269409c10955173da1c98eaa
Parent: 8eca627da7aa0005e2325fa9875662d5153247b5
commit 83c8d0320c301478269409c10955173da1c98eaa
Author: Andres Salomon <dilinger at debian.org>
AuthorDate: Thu Oct 5 16:57:33 2006 -0400
Commit: Andres Salomon <dilinger at debian.org>
CommitDate: Thu Oct 5 16:57:33 2006 -0400
Set the default min/max for each axis to be in line w/ what we discovered
via calibration.
---
drivers/input/mouse/olpc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/input/mouse/olpc.c b/drivers/input/mouse/olpc.c
index ef4093f..cd508eb 100644
--- a/drivers/input/mouse/olpc.c
+++ b/drivers/input/mouse/olpc.c
@@ -282,8 +282,8 @@ int olpc_init(struct psmouse *psmouse)
dev->keybit[LONG(BTN_LEFT)] |= BIT(BTN_LEFT) | BIT(BTN_RIGHT);
dev->evbit[LONG(EV_ABS)] |= BIT(EV_ABS);
- input_set_abs_params(dev, ABS_X, 0, 1023, 0, 0);
- input_set_abs_params(dev, ABS_Y, 0, 1023, 0, 0);
+ input_set_abs_params(dev, ABS_X, 42, 980, 0, 0);
+ input_set_abs_params(dev, ABS_Y, 32, 1023, 0, 0);
snprintf(priv->phys, sizeof(priv->phys),
"%s/input1", psmouse->ps2dev.serio->phys);
@@ -300,8 +300,8 @@ int olpc_init(struct psmouse *psmouse)
dev2->keybit[LONG(BTN_LEFT)] |= BIT(BTN_LEFT) | BIT(BTN_RIGHT);
dev2->evbit[LONG(EV_ABS)] |= BIT(EV_ABS);
- input_set_abs_params(dev2, ABS_X, 0, 2047, 0, 0);
- input_set_abs_params(dev2, ABS_Y, 0, 1023, 0, 0);
+ input_set_abs_params(dev2, ABS_X, 350, 512, 0, 0);
+ input_set_abs_params(dev2, ABS_Y, 70, 325, 0, 0);
input_set_abs_params(dev2, ABS_PRESSURE, 0, 63, 0, 0);
if (input_register_device(dev2))
More information about the Commits-kernel
mailing list