From 31a96545e433128af34f08a0bb993bbc54e90df1 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 13 May 2010 23:21:37 +0200 Subject: Disable motion with resting thumbs Disable motion gestures whenever one of the pointing fingers is a thumb. Movement is skipped rather than held, minimizing unpredictable movement after thumb release. Signed-off-by: Henrik Rydberg --- src/memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/memory.h') diff --git a/src/memory.h b/src/memory.h index cc7bf55..8ffbdab 100644 --- a/src/memory.h +++ b/src/memory.h @@ -31,6 +31,7 @@ * @same: true if the finger configuration is unchanged * @fingers: bitmask of fingers on the pad * @added: bitmask of new fingers on the pad + * @thumb: bitmask of thumbs on the pad * @pointing: bitmask of pointing fingers * @pending: bitmask of tentatively moving fingers * @moving: bitmask of moving fingers @@ -43,7 +44,7 @@ */ struct Memory { unsigned btdata, same; - unsigned fingers, added; + unsigned fingers, added, thumb; unsigned pointing, pending, moving; int ybar; mstime_t mvhold, mvforget; -- cgit v1.2.3