summaryrefslogtreecommitdiff
path: root/src/synapticsstr.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-23 09:15:04 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-05 09:12:07 +1000
commitc50dba0b04f2115a5d23ed4a785c101f9b26900b (patch)
treef83dfdedfa5fbcf4eb52d0ef48a6f16a9bdb0622 /src/synapticsstr.h
parentfba24019ffdcf4da8938a3ad61b2f38e40626858 (diff)
Add TouchpadModel specifier and scale the edges accordingly. (#21214)
ALPS models need different edge settings than synaptics pads to make the edges work propertly. So try to auto-detect the model (eventcomm anyway) and set the edges accordingly. New edge defaults are: synaptics: 7% of the total width alps: 15% of the total width unknown: 4% of the total width (see Synaptics UI guide) X.Org Bug 21214 <http://bugs.freedesktop.org/show_bug.cgi?id=21214> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Christoph Brill <egore911@egore911.de> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/synapticsstr.h')
-rw-r--r--src/synapticsstr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synapticsstr.h b/src/synapticsstr.h
index 859e757..ca3d26e 100644
--- a/src/synapticsstr.h
+++ b/src/synapticsstr.h
@@ -79,6 +79,12 @@ enum TapButtonState {
TBS_BUTTON_DOWN_UP /* Send button down event + set up state */
};
+enum TouchpadModel {
+ MODEL_UNKNOWN = 0,
+ MODEL_SYNAPTICS,
+ MODEL_ALPS
+};
+
typedef struct _SynapticsParameters
{
/* Parameter data */
@@ -209,6 +215,8 @@ typedef struct _SynapticsPrivateRec
Bool has_double; /* double click detected for this device */
Bool has_triple; /* triple click detected for this device */
Bool has_pressure; /* device reports pressure */
+
+ enum TouchpadModel model; /* The detected model */
} SynapticsPrivate;
#endif /* _SYNAPTICSSTR_H_ */