diff options
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/state.h b/src/state.h index d8e096a..340803a 100644 --- a/src/state.h +++ b/src/state.h @@ -25,34 +25,26 @@ #include "capabilities.h" #include "hwdata.h" -//////////////////////////////////////////////////////// - /* zero id means not mapped (not touching) */ struct FingerState { struct FingerData hw; int id; }; -//////////////////////////////////////////////////////// - struct State { struct FingerState finger[DIM_FINGER]; - button_t button; + unsigned button; int nfinger; int lastid; }; -//////////////////////////////////////////////////////// - void init_state(struct State *s); void modify_state(struct State *s, - const struct HWData* hw, - const struct Capabilities* caps); + const struct HWData *hw, + const struct Capabilities *caps); 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); -//////////////////////////////////////////////////////// - #endif |