mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-04 21:20:14 +01:00
touchpad: add elantech-specific pressure values
https://bugs.freedesktop.org/show_bug.cgi?id=99975 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
c0dbd6eb38
commit
957f8ec2f1
1 changed files with 8 additions and 3 deletions
|
|
@ -2382,9 +2382,14 @@ tp_init_pressure(struct tp_dispatch *tp,
|
|||
|
||||
range = abs->maximum - abs->minimum;
|
||||
|
||||
/* Approximately the synaptics defaults */
|
||||
tp->pressure.high = abs->minimum + 0.12 * range;
|
||||
tp->pressure.low = abs->minimum + 0.10 * range;
|
||||
if (device->model_flags & EVDEV_MODEL_ELANTECH_TOUCHPAD) {
|
||||
tp->pressure.high = 24;
|
||||
tp->pressure.low = 10;
|
||||
} else {
|
||||
/* Approximately the synaptics defaults */
|
||||
tp->pressure.high = abs->minimum + 0.12 * range;
|
||||
tp->pressure.low = abs->minimum + 0.10 * range;
|
||||
}
|
||||
|
||||
evdev_log_debug(device,
|
||||
"using pressure-based touch detection\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue