summaryrefslogtreecommitdiff
path: root/src/memory.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-05-13 23:21:37 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-05-14 01:41:39 +0200
commit31a96545e433128af34f08a0bb993bbc54e90df1 (patch)
tree8b352a2eb50d7a054867112f94f93689f51a1cc4 /src/memory.h
parentc620cb1319093dca0f0241c04c4c227a40577bdc (diff)
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 <rydberg@euromail.se>
Diffstat (limited to 'src/memory.h')
-rw-r--r--src/memory.h3
1 files changed, 2 insertions, 1 deletions
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 @@
31 * @same: true if the finger configuration is unchanged 31 * @same: true if the finger configuration is unchanged
32 * @fingers: bitmask of fingers on the pad 32 * @fingers: bitmask of fingers on the pad
33 * @added: bitmask of new fingers on the pad 33 * @added: bitmask of new fingers on the pad
34 * @thumb: bitmask of thumbs on the pad
34 * @pointing: bitmask of pointing fingers 35 * @pointing: bitmask of pointing fingers
35 * @pending: bitmask of tentatively moving fingers 36 * @pending: bitmask of tentatively moving fingers
36 * @moving: bitmask of moving fingers 37 * @moving: bitmask of moving fingers
@@ -43,7 +44,7 @@
43 */ 44 */
44struct Memory { 45struct Memory {
45 unsigned btdata, same; 46 unsigned btdata, same;
46 unsigned fingers, added; 47 unsigned fingers, added, thumb;
47 unsigned pointing, pending, moving; 48 unsigned pointing, pending, moving;
48 int ybar; 49 int ybar;
49 mstime_t mvhold, mvforget; 50 mstime_t mvhold, mvforget;