summaryrefslogtreecommitdiff
path: root/src/synapticsstr.h
diff options
context:
space:
mode:
authorPeter Zotov <whitequark@whitequark.org>2012-03-02 11:21:36 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-03-05 12:11:44 +1000
commit704c0fa3b677d5d648d0ab9d65cd03043797f3bf (patch)
tree268093c4d5ad7f69935e885df6c96268b841bb2a /src/synapticsstr.h
parentcddab79c408db3b13905a2be72aff4f7bf1406f8 (diff)
Implement a workaround for Elantech touchpads
All Elantech touchpads report the number of fingers explicitly, and at least the v3 version of the hardware can report any pressure values down to zero. This interferes with the tap detection hysteresis, which is required for dumb touchpads. This commit implements a vendor-specific workaround for Elantech touchpads which sets the FingerLow and FingerHigh options to 1 by default, effectively disabling the hysteresis mechanism. Signed-off-by: Peter Zotov <whitequark@whitequark.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src/synapticsstr.h')
-rw-r--r--src/synapticsstr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/synapticsstr.h b/src/synapticsstr.h
index ba1eb13..d4daeba 100644
--- a/src/synapticsstr.h
+++ b/src/synapticsstr.h
@@ -112,7 +112,8 @@ enum TouchpadModel {
MODEL_UNKNOWN = 0,
MODEL_SYNAPTICS,
MODEL_ALPS,
- MODEL_APPLETOUCH
+ MODEL_APPLETOUCH,
+ MODEL_ELANTECH
};
typedef struct _SynapticsParameters