From eadd3a4d0e4fe22cccce7bd61700845b666a18cc Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 13 Mar 2017 09:29:06 +1000 Subject: [PATCH libinput] touchpad: add pressure ranges for cyapa touchpads https://bugs.freedesktop.org/show_bug.cgi?id=100122 Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index e2866df..140fc6c 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -2385,6 +2385,9 @@ tp_init_pressure(struct tp_dispatch *tp, if (device->model_flags & EVDEV_MODEL_ELANTECH_TOUCHPAD) { tp->pressure.high = 24; tp->pressure.low = 10; + } else if (device->model_flags & EVDEV_MODEL_CYAPA) { + tp->pressure.high = 10; + tp->pressure.low = 8; } else { /* Approximately the synaptics defaults */ tp->pressure.high = abs->minimum + 0.12 * range; -- 2.9.3