From c620cb1319093dca0f0241c04c4c227a40577bdc Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 14 May 2010 01:30:05 +0200 Subject: 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 --- src/mtstate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mtstate.h') 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 { -- cgit v1.2.3