Xinput: use floats for ConstantDeceleration and AdaptiveDeceleration
These values need not be constrained to integer values. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
08cd361234
commit
3932a84857
|
@ -130,7 +130,7 @@ ProcessVelocityConfiguration(char* devname, pointer list, DeviceVelocityPtr s){
|
|||
xf86Msg(X_CONFIG, "%s: (accel) filter stage %i: %.2f ms\n",
|
||||
devname, i, 1.0f / (s->filters[i].rdecay));
|
||||
|
||||
tempf = xf86SetIntOption(list, "ConstantDeceleration", 1);
|
||||
tempf = xf86SetRealOption(list, "ConstantDeceleration", 1.0);
|
||||
if(tempf > 1.0){
|
||||
xf86Msg(X_CONFIG, "%s: (accel) constant deceleration by %.1f\n",
|
||||
devname, tempf);
|
||||
|
@ -138,7 +138,7 @@ ProcessVelocityConfiguration(char* devname, pointer list, DeviceVelocityPtr s){
|
|||
alias acceleration */
|
||||
}
|
||||
|
||||
tempf = xf86SetIntOption(list, "AdaptiveDeceleration", 1);
|
||||
tempf = xf86SetRealOption(list, "AdaptiveDeceleration", 1.0);
|
||||
if(tempf > 1.0){
|
||||
xf86Msg(X_CONFIG, "%s: (accel) adaptive deceleration by %.1f\n",
|
||||
devname, tempf);
|
||||
|
|
Loading…
Reference in New Issue
Block a user