summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Introduce tapping from any finger configurationHenrik Rydberg2010-08-262-50/+34
| | | | | | | | | | 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>
* Trim tapping timeoutsHenrik Rydberg2010-08-261-2/+2
| | | | | | Reduce the tapping timeout to 200 ms. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Correct abs event handlingHenrik Rydberg2010-08-262-21/+49
| | | | | | | | | | The current code lets abs events through during one-finger drags, and tapping does not work properly due to abs events not always being present during taps. Track the pointer position and emit abs events only if no gestures are in effect, and only if not explicitly filtered. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Plug hole in tentative gestures state during finger transitionHenrik Rydberg2010-08-262-7/+5
| | | | | | | | | During finger configuration transition, as well as after a tap, there would be no tentative gestures registered in the instantiator, leading to faulty emission of motion events. Fixed with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Declare missing header file for distro packageHenrik Rydberg2010-08-201-0/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add contact information to the property listHenrik Rydberg2010-08-199-191/+151
| | | | | | | | | | 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>
* Use the touch_caps directly rather than grail_get_units()Henrik Rydberg2010-08-192-12/+16
|
* Add grail_contact and a method to retrieve the current contactsHenrik Rydberg2010-08-192-0/+52
| | | | | | | This patch adds the possibility to extract the current set of contacts from the grail state. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Make gesture inserter visible to all local filesHenrik Rydberg2010-08-192-21/+30
| | | | | | Also remove the transformed flag in favor of a unit transformation. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Make grail implementation visible to all local filesHenrik Rydberg2010-08-192-9/+37
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Simplify touch machineryHenrik Rydberg2010-08-197-271/+177
| | | | | | | | | | To be able to model touch information uniformly across all supported devices, the semantics of the touch attributes has to be treated explicitly. Drop the generic touch property array and replace it by an actual structure. In addition, the touch-engine abstraction turned out to not be needed, so drop it as well. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Repackaged to utouch-grail v1.0.8v1.0.8Henrik Rydberg2010-08-122-15/+8
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* the bug fix, raw materialHenrik Rydberg2010-08-121-3/+10
|
* add a translation utility to grailHenrik Rydberg2010-08-111-0/+113
| | | | | | | | By calling the grail_set_bbox(), grail will do translation of api coordinates and matching properties to an external coordinate system, such as screen coordinates. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* api: add bounding box to rotate gesturesHenrik Rydberg2010-08-111-3/+13
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* split out bounding box computationHenrik Rydberg2010-08-113-22/+32
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: conformant argument order in apiHenrik Rydberg2010-08-112-3/+3
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add environment and meta gesturesHenrik Rydberg2010-08-116-3/+146
| | | | | | | | | | | With meta gestures, the gesture starts given a certain number of fingers, but can then continue even if the number of fingers change. By configuration, such gestures live on a different priority plane from normal gestures. To match window manager specs, this patch adds the environment and meta planes, and add drag, pinch and rotate gestures initiated with three and four fingers, respectively. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Count the extra touch event and mask additional abs eventsHenrik Rydberg2010-08-101-0/+4
| | | | | | | Not counting the BTN_TOUCH event implied not emitting the sync event, which confused evdev. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* change rotation units to anglesHenrik Rydberg2010-08-101-5/+5
| | | | | | | Use angle units, such that a complete revolution corresponds to 2 pi. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* pinch: add bounding box to property listHenrik Rydberg2010-08-101-2/+29
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Make tapping position appear properlyHenrik Rydberg2010-08-102-4/+13
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Filter kernel touch and tap buttonsHenrik Rydberg2010-08-101-1/+27
| | | | | | Reinsert BTN_TOUCH depending on the drag gesture Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Filter abs events by default in grail-gestureHenrik Rydberg2010-08-103-4/+9
| | | | | | Also connect the timeout for press with the timeout of tapping. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* always send pointer movement gesturesHenrik Rydberg2010-08-104-9/+13
| | | | | | | Always send drag events for one-finger touches, but only filter the ABS_X/Y events if grail_filter_abs_events() is set to true. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add property declarations to grail-typesHenrik Rydberg2010-08-108-47/+98
| | | | | | Also add accumulated values for delta and velocity properties. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* api: Rename gestures to conform to design docsHenrik Rydberg2010-08-108-93/+20
| | | | | | Use the names drag, pinch and rotate, and remove the combo gesture. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Trim the bars for action somewhatHenrik Rydberg2010-08-081-2/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Keep both raw and action delta in move modelHenrik Rydberg2010-08-087-30/+43
| | | | | | | | | 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-075-8/+12
| | | | | | For transient gestures like taps, use update only. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add configurable pointer gestureHenrik Rydberg2010-08-073-4/+10
| | | | | | | | In some applications, it is desirable to treat pointer movements as a gesture. This patch adds a gru configuration parameter which, then true, makes grail emit pointer gesture events. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* gesture: Improved tickle/active logicHenrik Rydberg2010-08-077-93/+107
| | | | | Reorganize the mode model to use bitmasks for tickle and active, and refine the tickle logic for each gesture.
* move: accumulate delta while inactiveHenrik Rydberg2010-08-071-3/+8
|
* treat one-finger moves in move model and simplify tapping logicHenrik Rydberg2010-08-073-9/+13
|
* Remove unused declarationsHenrik Rydberg2010-08-071-5/+0
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Update README and copyright in all filesHenrik Rydberg2010-08-0617-46/+38
| | | | | | 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-0618-0/+1828