mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 07:40:04 +01:00
touchpad: add pressure ranges for cyapa touchpads
https://bugs.freedesktop.org/show_bug.cgi?id=100122 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
e3d04088bd
commit
17e9dfd0d1
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue