diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-07-19 19:45:27 -0400 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-07-19 19:45:27 -0400 |
commit | 7b91f9277afb4bd9e557f9600bd92c68dd2435c9 (patch) | |
tree | e39aa02e99726c25dfc64cc6d57d65cfbf51447a /src/evdev_axes.c | |
parent | pass number of axes to InitValuatorClassDeviceStruct (diff) | |
download | xf86-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).
Diffstat (limited to 'src/evdev_axes.c')
-rw-r--r-- | src/evdev_axes.c | 2 |
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); } |