aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-07-19 19:45:27 -0400
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-07-19 19:45:27 -0400
commit7b91f9277afb4bd9e557f9600bd92c68dd2435c9 (patch)
treee39aa02e99726c25dfc64cc6d57d65cfbf51447a
parentpass number of axes to InitValuatorClassDeviceStruct (diff)
downloadxf86-input-evdev-7b91f9277afb4bd9e557f9600bd92c68dd2435c9.tar.gz
xf86-input-evdev-7b91f9277afb4bd9e557f9600bd92c68dd2435c9.tar.bz2
xf86-input-evdev-7b91f9277afb4bd9e557f9600bd92c68dd2435c9.zip
pass maxval correctly to xf86InitValuatorAxisDeviceStruct
Pass a maxval of -1 (i.e., fill this in appropriately), rather than 0 (0).
-rw-r--r--src/evdev_axes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev_axes.c b/src/evdev_axes.c
index c5eda70..b2b18e1 100644
--- a/src/evdev_axes.c
+++ b/src/evdev_axes.c
@@ -530,7 +530,7 @@ EvdevAxesInit (DeviceIntPtr device)
return !Success;
for (i = 0; i < axes; i++) {
- xf86InitValuatorAxisStruct(device, i, 0, 0, 0, 0, 1);
+ xf86InitValuatorAxisStruct(device, i, 0, -1, 0, 0, 1);
xf86InitValuatorDefaults(device, i);
}