Commit Graph

12 Commits

Author SHA1 Message Date
Gabriele Mazzotta
37d34f0356 Add a delay between the second button down-up event of double taps
Some applications ignore the second tap of double taps because of the
lack of a delay between the button down and button up events.

Prevent this by replacing the transition from TS_2B to TS_START with a
transition from TS_2B to TS_SINGLETAP that emits only a button down
event. The button up event will be emitted when transitioning from
TS_SINGLETAP to TS_START.

In addition, decrease the default value of MaxDoubleTapTime from 180 ms
to 100 ms in order to make double taps faster.

Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-02-18 16:52:56 +10:00
Gabriele Mazzotta
a357647d3f Update machine state diagram
The diagram didn't entirely reflect the current state of the code.

Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-01-16 12:58:50 +10:00
Erkin Bahceci
ee265e10c9 Add TapAndDragGesture option and gestures property.
The tap-and-drag gesture is an alternative way of dragging.
It is performed by tapping (touching and releasing the finger), then
touching again and moving the finger on the touchpad.
This gesture is enabled by default and can be disabled by setting the
TapAndDragGesture option to false.

The gesture already existed in synaptics and was always enabled. This
commit adds an option to switch it on/off. The default behavior is
tap-and-drag being enabled, that is, TapAndDragGesture is true.

The "Synaptics Gestures" property is intended to hold all new gesture
enabling options, like options for the upcoming multitouch gestures.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-13 09:03:46 +10:00
Christoph Brill
d6e069a2e5 Start cleaning up the documentation
Many of the files contain redundant information. The plan is to remove most of
the (maybe even all) and add the content to the man page.
2008-07-11 17:43:20 +02:00
Christoph Brill
1a9535cdc5 Move the current documents to the docs folder.
We should merge the interesting content to the manpages.
2008-06-06 20:05:27 +02:00
Christoph Brill
21cad8f60a Start moving out the docs to an appropriate directory.
We will provide the current documents in the docs directory. The interesting
stuff should be merged into the manpages though.
2008-06-06 19:58:40 +02:00
Peter Osterlund
adf4851a47 Update the state machine diagram for locked drag timeout. 2007-05-17 13:14:22 +02:00
Vaclav Kadlcik
470e6feb3a Add new parameter "SingleTapTimeout".
This patch adds a new parameter - "SingleTapTimeout" - to control the
"2A -> SINGLETAP" transition.

This gives greater control of tap behavior. For exmple, it is possible
to disable tap-and-drag by setting the parameter to 0.
2006-05-07 23:14:11 +02:00
Peter Osterlund
1aea131e10 Updated tap-and-drag state diagram with information about
"fast taps".
2006-04-09 04:03:15 +02:00
Peter Osterlund
1cb6c555d1 Added two parameters.
MaxDoubleTapTime makes it easier to do fast double clicks.
ClickTime adds a delay between the button down and button up events
generated in response to a tap event.
2006-04-09 04:02:27 +02:00
Peter Osterlund
77c952aa27 Made double clicks faster, so that they work in xmms and the
gtk file selector.
Reported by Jean DIRAISON <diraison.jean@wanadoo.fr>.)
2006-04-09 04:02:22 +02:00
Peter Osterlund
174d85a0f7 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.
2006-04-09 04:01:58 +02:00