aboutsummaryrefslogtreecommitdiffstats
path: root/src/mtstate.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-05-14 01:14:04 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-05-14 01:41:39 +0200
commitebaf307ab1b22d4786cc5fb55170204759e887ce (patch)
tree933487729ab47354f29cb1fbda38e6438ca8d22c /src/mtstate.h
parent2b271ed5348daec2bcf90b83da47781e2d8b964c (diff)
downloadxorg-input-kobomultitouch-ebaf307ab1b22d4786cc5fb55170204759e887ce.tar.gz
xorg-input-kobomultitouch-ebaf307ab1b22d4786cc5fb55170204759e887ce.tar.bz2
xorg-input-kobomultitouch-ebaf307ab1b22d4786cc5fb55170204759e887ce.zip
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.h9
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 @@
#include "hwstate.h"
+struct MTFinger {
+ struct FingerData hw;
+ int id;
+};
+
struct MTState {
- struct FingerState finger[DIM_FINGER];
+ struct MTFinger finger[DIM_FINGER];
int nfinger;
unsigned button;
mstime_t evtime;
@@ -37,7 +42,7 @@ void extract_mtstate(struct MTState *s,
const struct Capabilities *caps);
void output_mtstate(const struct MTState *s);
-const struct FingerState *find_finger(const struct MTState *s, int id);
+const struct MTFinger *find_finger(const struct MTState *s, int id);
#endif