summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2011-09-14 15:35:47 -0500
committerJamey Sharp <jamey@minilop.net>2011-09-14 15:35:47 -0500
commit8290a399dd67f421dba8472e3ebe0fcdd42225cb (patch)
tree67744483e9725d160edaf0e5f3ab6cace8c5abf1
parent4ef61d6bf8b9141a4c2ee90bb25efd2485a42cf3 (diff)
Don't scale the absolute axis valuators.
Peter Hutterer told me I needed to set the valuator ranges, but I don't want the input core to scale the coordinates. Setting the min and max to -1 apparently has the right effect. Signed-off-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--src/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index bd5e11e..d4d701c 100644
--- a/src/input.c
+++ b/src/input.c
@@ -197,7 +197,7 @@ _nested_input_init_axes(DeviceIntPtr device) {
int i;
for (i = 0; i < NUM_MOUSE_AXES; i++) {
- xf86InitValuatorAxisStruct(device, i, (Atom)0, 0, 640, 1, 1, 1, Absolute);
+ xf86InitValuatorAxisStruct(device, i, (Atom)0, -1, -1, 1, 1, 1, Absolute);
xf86InitValuatorDefaults(device, i);
}