summaryrefslogtreecommitdiff
path: root/ps2comm.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2003-07-16 22:56:01 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:03 +0200
commitd453ae378bd17fe65478bfe0d032167f48191e42 (patch)
tree605e65e00591addc261dbbc4a5c44d3e495f6458 /ps2comm.h
parentd37453a3368e051580bb73ecccdbe4fc5f6cf6c0 (diff)
Added proper support for "multi buttons". The old code
referred to this as six_button mode, but this mode was activated based on firmware version, which was not correct. From Hartwig Felger.
Diffstat (limited to 'ps2comm.h')
-rw-r--r--ps2comm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ps2comm.h b/ps2comm.h
index affdff1..c40ddfa 100644
--- a/ps2comm.h
+++ b/ps2comm.h
@@ -25,6 +25,8 @@
#define SYN_CAP_MULTIFINGER(c) (c&(1<<1))
#define SYN_CAP_PALMDETECT(c) (c&(1<<0))
#define SYN_CAP_VALID(c) (((c&0x00ff00)>>8)==0x47)
+#define SYN_EXT_CAP_REQUESTS(c) ((c&0x700000) == 0x100000)
+#define SYN_CAP_MULTI_BUTTON_NO(ec) ((ec&0x00f000)>>12)
/* synaptics modes query bits */
#define SYN_MODE_ABSOLUTE(m) (m&(1<<7))
@@ -50,7 +52,7 @@ Bool
synaptics_model_id(int fd, unsigned long int *model_id);
Bool
-synaptics_capability(int fd, unsigned long int *capability);
+synaptics_capability(int fd, unsigned long int *capability, unsigned long int *ext_capab);
Bool
synaptics_identify(int fd, unsigned long int *ident);