summaryrefslogtreecommitdiff
path: root/src/synapticsstr.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-09-16 01:14:49 +0200
committerPeter Hutterer <peter.hutterer@redhat.com>2008-09-17 18:06:55 +0930
commit102d1d6cfbc1cf3df3845b56ad1deb82a40d1cb8 (patch)
tree06ebdd3443ad8465d20a57a43daf3b5a84b0df5c /src/synapticsstr.h
parent2edb0e87693d432cbaef5fe7aa95bbd2c73a6361 (diff)
Improved defaults based on capability detection and auto scaling
This patch sets default parameters based on available buttons and multi-touch features. It also adds auto-scaling for parameters based on pressure and finger width. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'src/synapticsstr.h')
-rw-r--r--src/synapticsstr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/synapticsstr.h b/src/synapticsstr.h
index e5dd780..e5202d1 100644
--- a/src/synapticsstr.h
+++ b/src/synapticsstr.h
@@ -140,6 +140,12 @@ typedef struct _SynapticsPrivateRec
int avg_width; /* weighted average of previous fingerWidth values */
int minx, maxx, miny, maxy; /* min/max dimensions as detected */
+ int minp, maxp, minw, maxw; /* min/max pressure and finger width as detected */
+ Bool has_left; /* left button detected for this device */
+ Bool has_right; /* right button detected for this device */
+ Bool has_middle; /* middle button detected for this device */
+ Bool has_double; /* double click detected for this device */
+ Bool has_triple; /* triple click detected for this device */
} SynapticsPrivate;
#endif /* _SYNAPTICSSTR_H_ */