From bfd266660d69e13263e3895fb059040b65255a72 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 14 May 2010 01:29:05 +0200 Subject: janitor: Split gesture code into memory refresh and parse Split the gesture code into a lexical part, which updates the filtered motion state, and a parsing part, which translates the motion state to gestures. Signed-off-by: Henrik Rydberg --- src/mtouch.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mtouch.c') diff --git a/src/mtouch.c b/src/mtouch.c index 44b4376..ad077b7 100644 --- a/src/mtouch.c +++ b/src/mtouch.c @@ -65,5 +65,9 @@ void parse_event(struct MTouch *mt) extract_mtstate(&mt->state, &mt->hs, &mt->caps); #if 0 output_mtstate(&mt->state); +#endif + refresh_memory(&mt->mem, &mt->prev_state, &mt->state, &mt->caps); +#if 0 + output_memory(&mt->mem); #endif } -- cgit v1.2.3