From 963d6f71bb64125603d59c8bb70eaeec38c6fd72 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 10 Apr 2010 22:57:26 +0200 Subject: 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 --- src/hwstate.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/hwstate.h') 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); void modify_hwstate(struct HWState *s, const struct HWData *hw, const struct Capabilities *caps); -void output_hwstate(const struct HWState *s); - -const struct FingerState *find_finger(const struct HWState *s, int id); -int count_fingers(const struct HWState *s); #endif -- cgit v1.2.3