aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtstate.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-05-14 01:30:05 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-05-14 01:41:39 +0200
commitc620cb1319093dca0f0241c04c4c227a40577bdc (patch)
treecdfe7d9b42b7b7b83e3268e14b2ac2bf11f3208f /src/mtstate.h
parentc8c74659d27b9eb0d45342db9a4969389e20f26a (diff)
downloadxorg-input-kobomultitouch-c620cb1319093dca0f0241c04c4c227a40577bdc.tar.gz
xorg-input-kobomultitouch-c620cb1319093dca0f0241c04c4c227a40577bdc.tar.bz2
xorg-input-kobomultitouch-c620cb1319093dca0f0241c04c4c227a40577bdc.zip
Add resting thumb detection to MTFinger
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>
Diffstat (limited to 'src/mtstate.h')
-rw-r--r--src/mtstate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mtstate.h b/src/mtstate.h
index a8feaa4..ac0b18d 100644
--- a/src/mtstate.h
+++ b/src/mtstate.h
@@ -26,7 +26,7 @@
struct MTFinger {
struct FingerData hw;
- int id;
+ int id, thumb;
};
struct MTState {