diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-08 22:19:50 +0100 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-08 22:19:50 +0100 |
commit | c1131a0c9c628976d35bf6669e4d7aff7ac78988 (patch) | |
tree | dc427418916815c93713400fe644f4dd57bfc576 /src/state.h | |
parent | 2d96d426e063a4c2c33cabf9c6ebf570db1fcf1b (diff) | |
download | xorg-input-kobomultitouch-c1131a0c9c628976d35bf6669e4d7aff7ac78988.tar.gz xorg-input-kobomultitouch-c1131a0c9c628976d35bf6669e4d7aff7ac78988.tar.bz2 xorg-input-kobomultitouch-c1131a0c9c628976d35bf6669e4d7aff7ac78988.zip |
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.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); //////////////////////////////////////////////////////// |