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 @@ | |||
| 6 | 6 | ||
| 7 | //////////////////////////////////////////////////////// | 7 | //////////////////////////////////////////////////////// |
| 8 | 8 | ||
| 9 | /* zero id means not mapped (not touching) */ | ||
| 9 | struct FingerState { | 10 | struct FingerState { |
| 10 | struct FingerData hw; | 11 | struct FingerData hw; |
| 11 | int id; | 12 | int id; |
| @@ -17,7 +18,7 @@ struct State { | |||
| 17 | struct FingerState finger[DIM_FINGER]; | 18 | struct FingerState finger[DIM_FINGER]; |
| 18 | button_t button; | 19 | button_t button; |
| 19 | int nfinger; | 20 | int nfinger; |
| 20 | int nextid; | 21 | int lastid; |
| 21 | }; | 22 | }; |
| 22 | 23 | ||
| 23 | //////////////////////////////////////////////////////// | 24 | //////////////////////////////////////////////////////// |
| @@ -29,6 +30,7 @@ void modify_state(struct State *s, | |||
| 29 | void output_state(const struct State *s); | 30 | void output_state(const struct State *s); |
| 30 | 31 | ||
| 31 | const struct FingerState *find_finger(const struct State *s, int id); | 32 | const struct FingerState *find_finger(const struct State *s, int id); |
| 33 | int count_fingers(const struct State *s); | ||
| 32 | 34 | ||
| 33 | //////////////////////////////////////////////////////// | 35 | //////////////////////////////////////////////////////// |
| 34 | 36 | ||
