diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-05-14 01:14:04 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-05-14 01:41:39 +0200 |
| commit | ebaf307ab1b22d4786cc5fb55170204759e887ce (patch) | |
| tree | 933487729ab47354f29cb1fbda38e6438ca8d22c /src/mtstate.h | |
| parent | 2b271ed5348daec2bcf90b83da47781e2d8b964c (diff) | |
Introduce MTFinger structure
Switch from the FingerData structure to the MTFinger structure, making
room for more computed finger details in MTState.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/mtstate.h')
| -rw-r--r-- | src/mtstate.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mtstate.h b/src/mtstate.h index f8790dd..fa297cd 100644 --- a/src/mtstate.h +++ b/src/mtstate.h | |||
| @@ -24,8 +24,13 @@ | |||
| 24 | 24 | ||
| 25 | #include "hwstate.h" | 25 | #include "hwstate.h" |
| 26 | 26 | ||
| 27 | struct MTFinger { | ||
| 28 | struct FingerData hw; | ||
| 29 | int id; | ||
| 30 | }; | ||
| 31 | |||
| 27 | struct MTState { | 32 | struct MTState { |
| 28 | struct FingerState finger[DIM_FINGER]; | 33 | struct MTFinger finger[DIM_FINGER]; |
| 29 | int nfinger; | 34 | int nfinger; |
| 30 | unsigned button; | 35 | unsigned button; |
| 31 | mstime_t evtime; | 36 | mstime_t evtime; |
| @@ -37,7 +42,7 @@ void extract_mtstate(struct MTState *s, | |||
| 37 | const struct Capabilities *caps); | 42 | const struct Capabilities *caps); |
| 38 | void output_mtstate(const struct MTState *s); | 43 | void output_mtstate(const struct MTState *s); |
| 39 | 44 | ||
| 40 | const struct FingerState *find_finger(const struct MTState *s, int id); | 45 | const struct MTFinger *find_finger(const struct MTState *s, int id); |
| 41 | 46 | ||
| 42 | #endif | 47 | #endif |
| 43 | 48 | ||
