From ebaf307ab1b22d4786cc5fb55170204759e887ce Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 14 May 2010 01:14:04 +0200 Subject: 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 --- src/mtstate.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mtstate.h') 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 -- cgit v1.2.3