summaryrefslogtreecommitdiff
path: root/src/touch-caps.c
Commit message (Collapse)AuthorAgeFilesLines
* Only support pure absolute devices at this timeHenrik Rydberg2010-09-281-3/+11
| | | | | | | | | There are some hybrid relative/absolute devices out there, like the magic mouse, for which special behavior, outside the current scope of grail, is expected. This patch disables grail for those devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Support legacy devicesHenrik Rydberg2010-09-091-0/+37
| | | | | | | | | 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>
* Make orientation computation more robustHenrik Rydberg2010-08-301-5/+4
| | | | | | | | | The MT protocol defines the angle to be between -Pi/2 and Pi/2, and expects the defined range to be symmetric around zero. Make the angle computation more robust against varying definitions in the kernel drivers. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* Simplify touch machineryHenrik Rydberg2010-08-191-0/+73
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>