mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 05:40:04 +01:00
touchpad: allow disabling the touchpad hysteresis
Over the years we had a few devices that required some special hysteresis handling - all of it very customized to the device and not upstreamable (or even implementable by upstream without the device). Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1249>
This commit is contained in:
parent
2bb9c66cd7
commit
afd3be9a99
2 changed files with 4 additions and 0 deletions
|
|
@ -2765,6 +2765,9 @@ tp_interface_disable_feature(struct evdev_dispatch *dispatch,
|
||||||
case LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION:
|
case LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION:
|
||||||
tp->jump.detection_disabled = true;
|
tp->jump.detection_disabled = true;
|
||||||
break;
|
break;
|
||||||
|
case LIBINPUT_FEATURE_TOUCHPAD_HYSTERESIS:
|
||||||
|
tp->hysteresis.enabled = false;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ enum libinput_feature {
|
||||||
LIBINPUT_FEATURE_BUTTON_DEBOUNCING = 1,
|
LIBINPUT_FEATURE_BUTTON_DEBOUNCING = 1,
|
||||||
LIBINPUT_FEATURE_WHEEL_DEBOUNCING,
|
LIBINPUT_FEATURE_WHEEL_DEBOUNCING,
|
||||||
LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION,
|
LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION,
|
||||||
|
LIBINPUT_FEATURE_TOUCHPAD_HYSTERESIS,
|
||||||
|
|
||||||
_LIBINPUT_N_FEATURES
|
_LIBINPUT_N_FEATURES
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue