[PATCH libinput] touchpad: add pressure ranges for cyapa touchpads

Peter Hutterer peter.hutterer at who-t.net
Tue Mar 21 00:32:03 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100122

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 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..924e4f0 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 = 8;
+		tp->pressure.low = 6;
 	} else {
 		/* Approximately the synaptics defaults */
 		tp->pressure.high = abs->minimum + 0.12 * range;
-- 
2.9.3



More information about the wayland-devel mailing list