Xinput: allow non-integer values again for Constant- and AdaptiveDeceleration
This was initially fixed by commit3932a84857
but then (presumably not intentionally) undone by commit1d54479cb3
. Signed-off-by: Hans Nieser <hnsr@xs4all.nl> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
50a5c32430
commit
55f4c80a4c
|
@ -113,7 +113,7 @@ ProcessVelocityConfiguration(DeviceIntPtr pDev, char* devname, pointer list,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* common settings (available via device properties) */
|
/* common settings (available via device properties) */
|
||||||
tempf = xf86SetIntOption(list, "ConstantDeceleration", 1);
|
tempf = xf86SetRealOption(list, "ConstantDeceleration", 1.0);
|
||||||
if(tempf > 1.0){
|
if(tempf > 1.0){
|
||||||
xf86Msg(X_CONFIG, "%s: (accel) constant deceleration by %.1f\n",
|
xf86Msg(X_CONFIG, "%s: (accel) constant deceleration by %.1f\n",
|
||||||
devname, tempf);
|
devname, tempf);
|
||||||
|
@ -122,7 +122,7 @@ ProcessVelocityConfiguration(DeviceIntPtr pDev, char* devname, pointer list,
|
||||||
PropModeReplace, 1, &tempf, FALSE);
|
PropModeReplace, 1, &tempf, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
tempf = xf86SetIntOption(list, "AdaptiveDeceleration", 1);
|
tempf = xf86SetRealOption(list, "AdaptiveDeceleration", 1.0);
|
||||||
if(tempf > 1.0){
|
if(tempf > 1.0){
|
||||||
xf86Msg(X_CONFIG, "%s: (accel) adaptive deceleration by %.1f\n",
|
xf86Msg(X_CONFIG, "%s: (accel) adaptive deceleration by %.1f\n",
|
||||||
devname, tempf);
|
devname, tempf);
|
||||||
|
|
Loading…
Reference in New Issue