mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
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:
committed by
Daniel Stone
parent
7defeb0aef
commit
7b91f9277a
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user