summaryrefslogtreecommitdiff
path: root/synaptics.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2003-07-04 20:50:19 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:00 +0200
commitcde4d060e04a1684df99d81136c7107ee2050bc4 (patch)
tree9cf659d6a5fc5101126c48e4a4903d1c98905c1d /synaptics.h
parent85b9edee3325772b10824ecd58042165a4240a7e (diff)
Use packet counting instead of time to decide when to start
generating pointer movement events. This fixes the bug that incorrectly moved the cursor to the upper right corner when quickly putting the finger on the touchpad.
Diffstat (limited to 'synaptics.h')
-rw-r--r--synaptics.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/synaptics.h b/synaptics.h
index 2d669b1..b1e9eba 100644
--- a/synaptics.h
+++ b/synaptics.h
@@ -126,11 +126,10 @@ typedef struct _SynapticsPrivateRec
int fifofd; /* fd for fifo */
SynapticsTapRec touch_on; /* data when the touchpad is touched */
SynapticsMoveHistRec move_hist[SYNAPTICS_MOVE_HISTORY]; /* movement history */
- int move_hist_idx; /* Most recent entry in move_hist[] */
int scroll_y; /* last y-scroll position */
int scroll_x; /* last x-scroll position */
- unsigned long finger_millis; /* Time when finger entered touchpad */
+ unsigned long count_packet_finger; /* packet counter with finger on the touchpad */
unsigned int tapping_millis; /* packet counter for tapping */
unsigned int button_delay_millis; /* button delay for 3rd button emulation */
unsigned int prev_up; /* Previous up button value, for double click emulation */