summaryrefslogtreecommitdiff
path: root/synclient.c
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-04-10 23:46:42 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:01:58 +0200
commit174d85a0f70316f4e2b244018a9864cd34fadd23 (patch)
tree07b65f549fc784f66d5acb29535030da7451d776 /synclient.c
parent9a41e6a364c308341772e403332ed3da5399a187 (diff)
Implemented a proper state machine for tap and drag
processing. This fixes several problems: * Double tap and drag now works. (Problem reported by Andrew Pimlott <andrew@pimlott.net>.) * Locked drags are handled correctly, even for button 2 and 3 tap-and-drag operations. * The [LR][TB]CornerButton and TapButton[123] parameters now work also for button values > 3. * The old code was too hard to understand.
Diffstat (limited to 'synclient.c')
-rw-r--r--synclient.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/synclient.c b/synclient.c
index cf8aa8c..35f37f4 100644
--- a/synclient.c
+++ b/synclient.c
@@ -87,13 +87,13 @@ static struct Parameter params[] = {
DEFINE_PAR("UpDownScrolling", updown_button_scrolling, PT_BOOL, 0, 1),
DEFINE_PAR("TouchpadOff", touchpad_off, PT_BOOL, 0, 1),
DEFINE_PAR("LockedDrags", locked_drags, PT_BOOL, 0, 1),
- DEFINE_PAR("RTCornerButton", tap_action[RT_TAP], PT_INT, 0, 3),
- DEFINE_PAR("RBCornerButton", tap_action[RB_TAP], PT_INT, 0, 3),
- DEFINE_PAR("LTCornerButton", tap_action[LT_TAP], PT_INT, 0, 3),
- DEFINE_PAR("LBCornerButton", tap_action[LB_TAP], PT_INT, 0, 3),
- DEFINE_PAR("TapButton1", tap_action[F1_TAP], PT_INT, 0, 3),
- DEFINE_PAR("TapButton2", tap_action[F2_TAP], PT_INT, 0, 3),
- DEFINE_PAR("TapButton3", tap_action[F3_TAP], PT_INT, 0, 3),
+ DEFINE_PAR("RTCornerButton", tap_action[RT_TAP], PT_INT, 0, 7),
+ DEFINE_PAR("RBCornerButton", tap_action[RB_TAP], PT_INT, 0, 7),
+ DEFINE_PAR("LTCornerButton", tap_action[LT_TAP], PT_INT, 0, 7),
+ DEFINE_PAR("LBCornerButton", tap_action[LB_TAP], PT_INT, 0, 7),
+ DEFINE_PAR("TapButton1", tap_action[F1_TAP], PT_INT, 0, 7),
+ DEFINE_PAR("TapButton2", tap_action[F2_TAP], PT_INT, 0, 7),
+ DEFINE_PAR("TapButton3", tap_action[F3_TAP], PT_INT, 0, 7),
DEFINE_PAR("CircularScrolling", circular_scrolling, PT_BOOL, 0, 1),
DEFINE_PAR("CircScrollDelta", scroll_dist_circ, PT_DOUBLE, .01, 3),
DEFINE_PAR("CircScrollTrigger", circular_trigger, PT_INT, 0, 8),