diff options
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); //////////////////////////////////////////////////////// |