From 3c63b1e6cc9eb7379e7687a5faec778c5dbfdc98 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 8 Aug 2010 11:07:20 +0200 Subject: Keep both raw and action delta in move model Accumulated values can be obtained either by using the raw_delta, which is the actual (filtered) change between frames, or by using the action delta, which sums up to the same position, but in a non- linear fashion. Use the raw delta for pointer gestures. Signed-off-by: Henrik Rydberg --- src/grail-gestures.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/grail-gestures.h') diff --git a/src/grail-gestures.h b/src/grail-gestures.h index 3ace580..2acbb6d 100644 --- a/src/grail-gestures.h +++ b/src/grail-gestures.h @@ -37,7 +37,12 @@ #define FM_A 3 struct filter_model { - float delta, val, orig, fuzz, bar; + float raw_delta; + float action_delta; + float value; + float original; + float fuzz; + float bar; }; struct move_model { -- cgit v1.2.3