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:
Peter Hutterer 2025-06-26 14:32:27 +10:00
parent 2bb9c66cd7
commit afd3be9a99
2 changed files with 4 additions and 0 deletions

View file

@ -2765,6 +2765,9 @@ tp_interface_disable_feature(struct evdev_dispatch *dispatch,
case LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION:
tp->jump.detection_disabled = true;
break;
case LIBINPUT_FEATURE_TOUCHPAD_HYSTERESIS:
tp->hysteresis.enabled = false;
break;
default:
return;
}

View file

@ -27,6 +27,7 @@ enum libinput_feature {
LIBINPUT_FEATURE_BUTTON_DEBOUNCING = 1,
LIBINPUT_FEATURE_WHEEL_DEBOUNCING,
LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION,
LIBINPUT_FEATURE_TOUCHPAD_HYSTERESIS,
_LIBINPUT_N_FEATURES
};