touchpad: use INPUT_PROP_PRESSUREPAD as signal it's a pressurepad

Because, well, it says so on the box now. No more quirks, hopefully!

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1359>
This commit is contained in:
Peter Hutterer 2025-11-07 14:28:59 +10:00 committed by Marge Bot
parent 7621edab05
commit db6a04665c

View file

@ -3622,7 +3622,8 @@ tp_init_pressurepad(struct tp_dispatch *tp, struct evdev_device *device)
* *
* See also #562 * See also #562
*/ */
if (libevdev_get_abs_resolution(device->evdev, ABS_MT_PRESSURE) != 0 || if (libevdev_has_property(device->evdev, INPUT_PROP_PRESSUREPAD) ||
libevdev_get_abs_resolution(device->evdev, ABS_MT_PRESSURE) != 0 ||
evdev_device_has_model_quirk(device, QUIRK_MODEL_PRESSURE_PAD)) { evdev_device_has_model_quirk(device, QUIRK_MODEL_PRESSURE_PAD)) {
libevdev_disable_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE); libevdev_disable_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE);
libevdev_disable_event_code(device->evdev, EV_ABS, ABS_PRESSURE); libevdev_disable_event_code(device->evdev, EV_ABS, ABS_PRESSURE);