pass maxval correctly to xf86InitValuatorAxisDeviceStruct

Pass a maxval of -1 (i.e., fill this in appropriately), rather than 0 (0).
This commit is contained in:
Daniel Stone
2006-07-19 19:45:27 -04:00
committed by Daniel Stone
parent 7defeb0aef
commit 7b91f9277a

View File

@@ -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);
}