summaryrefslogtreecommitdiff
path: root/synaptics.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2003-08-02 13:07:33 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:08 +0200
commit4b975c2b5080a8686d57413825c8bf1e0288c17e (patch)
tree041a21bc8ec98ec0cda01fb08b571cbe867f8021 /synaptics.h
parent106ccc8b509d94f9ea2f0dfd41bde0766694536f (diff)
Reset the touchpad if it has been out of sync for too long.
(By Hartwig Felger, cleaned up somewhat by me.) The synaptics manual explains that the touchpad can revert to relative mode after a power glitch or electrostatic discharge.
Diffstat (limited to 'synaptics.h')
-rw-r--r--synaptics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/synaptics.h b/synaptics.h
index bd0c62f..ef7224c 100644
--- a/synaptics.h
+++ b/synaptics.h
@@ -111,7 +111,7 @@ typedef struct _SynapticsPrivateRec
XISBuffer *buffer;
unsigned char protoBuf[6]; /* Buffer for Packet */
unsigned char lastByte; /* letztes gelesene byte */
- Bool inSync; /* Packets in sync */
+ int outOfSync; /* How many consecutive incorrect packets we have received */
int protoBufTail;
int fifofd; /* fd for fifo */
SynapticsTapRec touch_on; /* data when the touchpad is touched */