summaryrefslogtreecommitdiff
path: root/src/gestures-tapping.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright informationHEADmasterHenrik Rydberg2011-04-281-2/+1
| | | | | | | | The license information was always right, but the copyright information for this particular project was never quite right. Corrected with this patch. No functional changes. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Convert to utouch-frame mappingHenrik Rydberg2011-04-041-2/+2
| | | | | | | | Remove the grail-internal mapping code and rely directly on utouch-frame instead. Passes the unit test designed for this change. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Fix problem with tap properties at touch release -againHenrik Rydberg2011-03-241-1/+1
| | | | | | | | | This problem was fixed in the early grail stages, and reappeared in Aug 2010, in commit 241c5ec0. This one-liner fixes the problem, because the only interesting update to the properties state at maximum number of fingers is the end time. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Reset tap state after timeoutHenrik Rydberg2011-03-141-0/+6
| | | | | | | A touch and hold will not properly reset the tap state, such that the next tap fails to register. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Fix tap event leakageChase Douglas2011-03-141-8/+1
| | | | | | | | | | | | As an earlier stabilizing measure, very short taps were not registered as such but discarded, potentially letting the touch information through as non-gesture events. This should rather be handled in utouch-frame, and thus the code his dropped here. [rydberg@euromail.se: folded in unused code removal] Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Replace touch logic with utouch frame engineHenrik Rydberg2011-01-021-2/+2
| | | | | | | | | | | The original grail uses an internal touch framework and exports some touch information as extended attributes to gesture events. This was never quite the intention, but rather to expose gestures and touches on a similar footing, such that grail can be input agnostic. This patch starts off by replacing the internal touch framework with the utouch-frame engine. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add tap state to the tapping modelHenrik Rydberg2010-09-211-0/+2
| | | | | | | Add the ability to read off the tap state in the tapping model. Useful for emulation i lieu of tapping gestures. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Do not tap when leaving fingers on the padHenrik Rydberg2010-09-211-10/+13
| | | | | | | | The current code will treat a 3-down-2-up as a tap. This patch changes the logic so that taps are only emitted when the number of fingers returns to the baseline. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Inhibit taps immediately after a finger is liftedHenrik Rydberg2010-09-101-1/+6
| | | | | | | | | The intentional tap starts with a finger in the air. This patch treats the sequence up-down-up as unintentional, unless performed with a single finger. Fixes the problem with accidental taps during multi-finger gestures. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Cancel tapping also on zoom eventsHenrik Rydberg2010-09-091-1/+1
| | | | | | | | | The current code cancels tapping when dragging is active. This patch adds zooming to the set, to inhibit tapping also when a perfect zoom without dragging is performed. Reported-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Discard tapping even when there are zero events between down and upHenrik Rydberg2010-09-091-1/+1
| | | | | | | | | The current logic assumes there will be at least one frame with between touch up and touch down or the tap will not be properly timed out. Fixed with this patch. Reported-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce tapping from any finger configurationHenrik Rydberg2010-08-261-49/+33
| | | | | | | | | | The current code only emits taps from zero fingers to N fingers. This patch introduces tapping from any prior finger configuration. A tap is defined as an increased number of fingers followed by a decrease within the tap timeout. A tap is reported as the maximum number of fingers present during the tap sequence. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add contact information to the property listHenrik Rydberg2010-08-191-5/+12
| | | | | | | | | | Add the five first contacts to the property list, and unify the handling of all gesture types in this regard. To avoid duplication, move the scaling of properties closer to the gesture recognizer. Move all gesture event handling code to grail-event.c, simplifying the structure somewhat. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Make tapping position appear properlyHenrik Rydberg2010-08-101-4/+11
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Filter abs events by default in grail-gestureHenrik Rydberg2010-08-101-2/+1
| | | | | | Also connect the timeout for press with the timeout of tapping. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add property declarations to grail-typesHenrik Rydberg2010-08-101-1/+1
| | | | | | Also add accumulated values for delta and velocity properties. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Keep both raw and action delta in move modelHenrik Rydberg2010-08-081-1/+1
| | | | | | | | | Accumulated values can be obtained either by using the raw_delta, which is the actual (filtered) change between frames, or by using the action delta, which sums up to the same position, but in a non- linear fashion. Use the raw delta for pointer gestures. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Send proper begin/update/end status for gesturesHenrik Rydberg2010-08-071-1/+1
| | | | | | For transient gestures like taps, use update only. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* gesture: Improved tickle/active logicHenrik Rydberg2010-08-071-2/+4
| | | | | Reorganize the mode model to use bitmasks for tickle and active, and refine the tickle logic for each gesture.
* treat one-finger moves in move model and simplify tapping logicHenrik Rydberg2010-08-071-6/+0
|
* Update README and copyright in all filesHenrik Rydberg2010-08-061-3/+1
| | | | | | Add the author to the copyright, courtesy of Canonical Ltd. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* initial bzr repo at rev 27Henrik Rydberg2010-08-061-0/+101