summaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-11-08 22:19:50 +0100
committerHenrik Rydberg <rydberg@euromail.se>2008-11-08 22:19:50 +0100
commitc1131a0c9c628976d35bf6669e4d7aff7ac78988 (patch)
treedc427418916815c93713400fe644f4dd57bfc576 /src/state.h
parent2d96d426e063a4c2c33cabf9c6ebf570db1fcf1b (diff)
matching stable!
however, now crashes X occasionally... stream overload? Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h4
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) */
9struct FingerState { 10struct 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,
29void output_state(const struct State *s); 30void output_state(const struct State *s);
30 31
31const struct FingerState *find_finger(const struct State *s, int id); 32const struct FingerState *find_finger(const struct State *s, int id);
33int count_fingers(const struct State *s);
32 34
33//////////////////////////////////////////////////////// 35////////////////////////////////////////////////////////
34 36