summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Support legacy devicesHenrik Rydberg2010-09-091-0/+1
| | | | | | | | | Simulate MT touch events for legacy devices that support the DOUBLETAP, TRIPLETAP and QUADTAP events. This allows multi-finger tap and drag gestures to be emitted, providing a basic level of MT functionality for legacy devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add contact information to the property listHenrik Rydberg2010-08-191-0/+69
| | | | | | | | | | 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>
* Crank up the maximum number of propertiesHenrik Rydberg2010-08-191-1/+1
| | | | | | | | To prepare for the (for maverick only) addition of individual contact information via the properties array, increase the maximum number of contacts. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add grail_contact and a method to retrieve the current contactsHenrik Rydberg2010-08-191-0/+38
| | | | | | | This patch adds the possibility to extract the current set of contacts from the grail state. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Reserve one mask position for system useHenrik Rydberg2010-08-191-3/+7
| | | | | | This is needed for gesture propagation outside of grail. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add documentation to structs and functions in grail.hHenrik Rydberg2010-08-191-5/+138
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Simplify touch machineryHenrik Rydberg2010-08-191-43/+22
| | | | | | | | | | 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>
* add a translation utility to grailHenrik Rydberg2010-08-111-0/+4
| | | | | | | | 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-0/+4
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* add main type numbers to grail type propertiesHenrik Rydberg2010-08-111-0/+4
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: conformant argument order in apiHenrik Rydberg2010-08-111-2/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add environment and meta gesturesHenrik Rydberg2010-08-111-0/+8
| | | | | | | | | | | 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>
* change rotation units to anglesHenrik Rydberg2010-08-101-3/+3
| | | | | | | 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-0/+4
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Make tapping position appear properlyHenrik Rydberg2010-08-101-0/+2
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* always send pointer movement gesturesHenrik Rydberg2010-08-101-1/+1
| | | | | | | 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-101-0/+10
| | | | | | 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-101-27/+32
| | | | | | Use the names drag, pinch and rotate, and remove the combo gesture. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add configurable pointer gestureHenrik Rydberg2010-08-071-0/+2
| | | | | | | | 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>
* Update README and copyright in all filesHenrik Rydberg2010-08-064-12/+4
| | | | | | 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-064-0/+322