summaryrefslogtreecommitdiff
path: root/src/hwstate.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-04-10 22:57:26 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-04-15 06:10:07 +0200
commit963d6f71bb64125603d59c8bb70eaeec38c6fd72 (patch)
tree87dc34640a4e47cee618ebbc8d665e100e21239f /src/hwstate.h
parent9c24576540ba57449c31bafcb8f4aab41b8623b7 (diff)
Introduce the MTState
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>
Diffstat (limited to 'src/hwstate.h')
-rw-r--r--src/hwstate.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/hwstate.h b/src/hwstate.h
index fd53e71..b8c2ba0 100644
--- a/src/hwstate.h
+++ b/src/hwstate.h
@@ -43,9 +43,5 @@ void init_hwstate(struct HWState *s);
43void modify_hwstate(struct HWState *s, 43void modify_hwstate(struct HWState *s,
44 const struct HWData *hw, 44 const struct HWData *hw,
45 const struct Capabilities *caps); 45 const struct Capabilities *caps);
46void output_hwstate(const struct HWState *s);
47
48const struct FingerState *find_finger(const struct HWState *s, int id);
49int count_fingers(const struct HWState *s);
50 46
51#endif 47#endif