From c1131a0c9c628976d35bf6669e4d7aff7ac78988 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 8 Nov 2008 22:19:50 +0100 Subject: matching stable! however, now crashes X occasionally... stream overload? Signed-off-by: Henrik Rydberg --- src/state.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/state.h') diff --git a/src/state.h b/src/state.h index 65ae581..5a59192 100644 --- a/src/state.h +++ b/src/state.h @@ -6,6 +6,7 @@ //////////////////////////////////////////////////////// +/* zero id means not mapped (not touching) */ struct FingerState { struct FingerData hw; int id; @@ -17,7 +18,7 @@ struct State { struct FingerState finger[DIM_FINGER]; button_t button; int nfinger; - int nextid; + int lastid; }; //////////////////////////////////////////////////////// @@ -29,6 +30,7 @@ void modify_state(struct State *s, void output_state(const struct State *s); const struct FingerState *find_finger(const struct State *s, int id); +int count_fingers(const struct State *s); //////////////////////////////////////////////////////// -- cgit v1.2.3