diff options
author | Peter Osterlund <petero2@telia.com> | 2004-04-18 01:52:08 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:02:06 +0200 |
commit | 3e37b4c7d263b033741bf1c8176c013e5e7ca739 (patch) | |
tree | 291793647ed70d4832688056233d68770d52f042 /synproto.h | |
parent | 647c5ae5f5658fabb46ce434be47e2892bed2111 (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.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 */ |