aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtstate.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing thumb reset at state extractionDennis Jarosch2011-02-131-0/+1
| | | | | | | | Fixes the bug that stopped tapped clicks from working when two thumbs were detected, by initializing the thumb variable for every new state. Signed-off-by: Dennis Jarosch <dennis.jarosch@gmx.de> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Support palm detection for trackpads without width supportHenrik Rydberg2010-10-161-3/+7
| | | | | | | | The Magic Trackpad does not report both touch and width of a finger, making thumb/palm detection less reliable. Approximate thumb detection as a large oval object, restoring some of the thumb functionality. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Adjust thumb detection based on kernel touch width alignmentHenrik Rydberg2010-10-161-2/+2
| | | | | | | | | Recently, a set of kernel drivers were updated to align the reported touch size with actual physical size. Consequently, the thumb detection, which contains an absolute size component, needs to be updated. Remedied with this patch. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Same version, but using the mtdev library.Henrik Rydberg2010-10-121-7/+7
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* refactor: Replace hwdata by mtdevHenrik Rydberg2010-06-161-27/+18
| | | | | | | | This patch makes the switch, from using hwdata and the associated type A parser, to using mtdev and the associated type B parser. A command-line gesture test program is included. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* refactor: Simplify capabilitiesHenrik Rydberg2010-06-161-5/+7
| | | | | | | Use the generated abs2mt mapping to simplify the MT device capabilities. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add resting thumb detection to MTFingerHenrik Rydberg2010-05-141-0/+26
| | | | | | | | | | | | | | Robust thumb detection is essential for more advanced gestures, thumbs being responsible for many false positives. One major feature of the thumb is that its shape is oval, regardless of applied pressure. An index finger pressed hard against the surface also turns oval, but the touch/width ratio then increases significantly. This suggests that it is possible to uniquely identify a resting thumb as a finger with oval shape and normal touch/with ratio. This patch adds detection of resting thumbs to the MTFinger structure. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce MTFinger structureHenrik Rydberg2010-05-141-4/+15
| | | | | | | Switch from the FingerData structure to the MTFinger structure, making room for more computed finger details in MTState. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce the MTStateHenrik Rydberg2010-04-151-0/+93
The HWState keeps, for good reason, both touching fingers and fingers going away. However, this implies that additional logic is needed to keep track of the number of actual touching fingers. In particular the test for touching fingers is somewhat misplaced in hwstate.c. Moreover, HWState should only exist in one instance, since it contains data which does not need to be referred to during gesture extraction. This patch introduces the MTState structure, which keeps more digested data for gesture extraction. In particular, it only keeps the actual touches. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>