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

Peter Hutterer peter.hutterer at who-t.net
Wed Mar 22 05:52:23 UTC 2017


On Tue, Mar 21, 2017 at 10:32:03AM +1000, Peter Hutterer wrote:
> 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;

updated locally to 10/8 at the tester's request

Cheers,
   Peter

>  	} else {
>  		/* Approximately the synaptics defaults */
>  		tp->pressure.high = abs->minimum + 0.12 * range;
> -- 
> 2.9.3
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
> 


More information about the wayland-devel mailing list