Set the default min/max for each axis to be in line w/ what we
discovered
Andres Salomon
dilinger at debian.unroutableorg
Wed Nov 29 11:14:53 EST 2006
Commit: 2f8c6767ada28167e0b1d96eabef9331a2d5d9b7
Parent: ed7c663acf60b1818060a5d998298d8b58698638
commit 2f8c6767ada28167e0b1d96eabef9331a2d5d9b7
Author: Andres Salomon <dilinger at debian.org>
AuthorDate: Tue Oct 3 15:46:37 2006 -0400
Commit: Andres Salomon <dilinger at debian.org>
CommitDate: Tue Oct 3 15:46:37 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