projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d0408
)
touchpad: add pressure ranges for cyapa touchpads
author
Peter Hutterer
<peter.hutterer@who-t.net>
Sun, 12 Mar 2017 23:29:06 +0000
(09:29 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 22 Mar 2017 21:29:36 +0000
(07:29 +1000)
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>
src/evdev-mt-touchpad.c
patch
|
blob
|
history
diff --git
a/src/evdev-mt-touchpad.c
b/src/evdev-mt-touchpad.c
index e2866df0a5ac991f5bca0f8f1aefa06184db8284..140fc6c9fa16be8f89b980f09828138a8b881327 100644
(file)
--- 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 = 10;
+ tp->pressure.low = 8;
} else {
/* Approximately the synaptics defaults */
tp->pressure.high = abs->minimum + 0.12 * range;