summaryrefslogtreecommitdiff
path: root/synaptics.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2003-08-23 18:50:40 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:09 +0200
commit156c4330531c037eb7bb45a38b84bacb5010e290 (patch)
tree040c2f3838532607d56718c6572418fbb48a31e7 /synaptics.h
parent5ab0290008b2c6d69d3b7ed0b0375652cf4ae40c (diff)
Comment fixes.
Diffstat (limited to 'synaptics.h')
-rw-r--r--synaptics.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/synaptics.h b/synaptics.h
index 5bbdb48..72c215b 100644
--- a/synaptics.h
+++ b/synaptics.h
@@ -11,7 +11,7 @@
typedef struct _SynapticsSHM
{
/* Current device state */
- int x, y; /* actual x, y Coordinates */
+ int x, y; /* actual x, y coordinates */
int z; /* pressure value */
int w; /* finger width value */
int left, right, up, down; /* left/right/up/down buttons */
@@ -24,8 +24,7 @@ typedef struct _SynapticsSHM
Bool isSynaptics; /* Synaptics touchpad active */
/* Parameter data */
- int left_edge, right_edge, top_edge, bottom_edge;
- /* edge coordinates absolute */
+ int left_edge, right_edge, top_edge, bottom_edge; /* edge coordinates absolute */
int finger_low, finger_high; /* finger detection values in Z-values */
unsigned long tap_time;
int tap_move; /* max. tapping-time and movement in packets and coord. */
@@ -110,7 +109,7 @@ typedef struct _SynapticsPrivateRec
/* Data for normal processing */
XISBuffer *buffer;
unsigned char protoBuf[6]; /* Buffer for Packet */
- unsigned char lastByte; /* letztes gelesene byte */
+ unsigned char lastByte; /* Last read byte. Use for reset sequence detection. */
int outOfSync; /* How many consecutive incorrect packets we
have received */
int protoBufTail;
@@ -164,10 +163,7 @@ static Bool SynapticsParseRawPacket(LocalDevicePtr, SynapticsPrivatePtr,
static Bool SynapticsGetPacket(LocalDevicePtr, SynapticsPrivatePtr);
static void PrintIdent(SynapticsPrivatePtr);
-#endif
+#endif /* SYNAPTICS_PRIVATE */
-/*
- * DO NOT PUT ANYTHING AFTER THIS ENDIF
- */
#endif /* _SYNAPTICS_H_ */