From 7b91f9277afb4bd9e557f9600bd92c68dd2435c9 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 19 Jul 2006 19:45:27 -0400 Subject: pass maxval correctly to xf86InitValuatorAxisDeviceStruct Pass a maxval of -1 (i.e., fill this in appropriately), rather than 0 (0). --- src/evdev_axes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/evdev_axes.c') 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); } -- cgit v1.2.3