summaryrefslogtreecommitdiff
path: root/synproto.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-04-18 01:52:08 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:06 +0200
commit3e37b4c7d263b033741bf1c8176c013e5e7ca739 (patch)
tree291793647ed70d4832688056233d68770d52f042 /synproto.h
parent647c5ae5f5658fabb46ce434be47e2892bed2111 (diff)
Moved the CommData struct from synaptics.h to synproto.h so
that ps2comm.c and eventcomm.c don't have to define SYNAPTICS_PRIVATE.
Diffstat (limited to 'synproto.h')
-rw-r--r--synproto.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/synproto.h b/synproto.h
index b653ad6..a7c63c0 100644
--- a/synproto.h
+++ b/synproto.h
@@ -21,6 +21,7 @@
#include <sys/ioctl.h>
#include <xf86Xinput.h>
+#include <xisb.h>
/*
* A structure to describe the state of the touchpad hardware (buttons and pad)
@@ -48,6 +49,20 @@ struct SynapticsHwState {
int guest_dy;
};
+struct CommData {
+ XISBuffer *buffer;
+ unsigned char protoBuf[6]; /* Buffer for Packet */
+ unsigned char lastByte; /* Last read byte. Use for reset sequence detection. */
+ int outOfSync; /* How many consecutive incorrect packets we
+ have received */
+ int protoBufTail;
+
+ /* Used for keeping track of partial HwState updates. */
+ struct SynapticsHwState hwState;
+ Bool oneFinger;
+ Bool twoFingers;
+ Bool threeFingers;
+};
enum SynapticsProtocol {
SYN_PROTO_PSAUX, /* Raw psaux device */