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

Hans de Goede hdegoede at redhat.com
Wed Mar 22 14:50:38 UTC 2017


Hi,

On 22-03-17 06:52, Peter Hutterer wrote:
> 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

LGTM:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans


More information about the wayland-devel mailing list