diff options
author | Mildred Ki'lya <mildred593@online.fr> | 2008-08-06 21:40:11 +0200 |
---|---|---|
committer | Christoph Brill <egore911@egore911.de> | 2008-08-06 21:40:11 +0200 |
commit | c32b4d47b94c2c18fab7f30588ddae8827e38f27 (patch) | |
tree | 3d0f9723f43b871ce0f01f940c4e9cd3016e2ae0 /tools/synclient.c | |
parent | f04b27861983212bb6b216c589aa7b0b24256f63 (diff) |
Add support for reporting multiple fingers as different buttons
This adds 3 new options. Use them as follows:
Section "InputDevice"
...
Option "ClickFinger1" "1"
Option "ClickFinger2" "3"
Option "ClickFinger3" "2"
EndSection
The driver would then report:
* clicking one finger = left click
* clicking with two fingers = right click
* clicking with 3 fingers = middle mouse button
Diffstat (limited to 'tools/synclient.c')
-rw-r--r-- | tools/synclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/synclient.c b/tools/synclient.c index f633988..7977d89 100644 --- a/tools/synclient.c +++ b/tools/synclient.c @@ -107,6 +107,9 @@ static struct Parameter params[] = { DEFINE_PAR("TapButton1", tap_action[F1_TAP], PT_INT, 0, SYN_MAX_BUTTONS), DEFINE_PAR("TapButton2", tap_action[F2_TAP], PT_INT, 0, SYN_MAX_BUTTONS), DEFINE_PAR("TapButton3", tap_action[F3_TAP], PT_INT, 0, SYN_MAX_BUTTONS), + DEFINE_PAR("ClickFinger1", click_action[F1_CLICK1], PT_INT, 0, SYN_MAX_BUTTONS), + DEFINE_PAR("ClickFinger2", click_action[F2_CLICK1], PT_INT, 0, SYN_MAX_BUTTONS), + DEFINE_PAR("ClickFinger3", click_action[F3_CLICK1], PT_INT, 0, SYN_MAX_BUTTONS), 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), |