diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-08 11:07:20 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-08 12:05:16 +0200 |
| commit | 3c63b1e6cc9eb7379e7687a5faec778c5dbfdc98 (patch) | |
| tree | fad5937d1c16d5d97f704867969fe10880280025 /src/grail-gestures.h | |
| parent | 301cb7f95a4ca67b42410e65c71ddeefc379cb63 (diff) | |
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 <rydberg@euromail.se>
Diffstat (limited to 'src/grail-gestures.h')
| -rw-r--r-- | src/grail-gestures.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
| 37 | #define FM_A 3 | 37 | #define FM_A 3 |
| 38 | 38 | ||
| 39 | struct filter_model { | 39 | struct filter_model { |
| 40 | float delta, val, orig, fuzz, bar; | 40 | float raw_delta; |
| 41 | float action_delta; | ||
| 42 | float value; | ||
| 43 | float original; | ||
| 44 | float fuzz; | ||
| 45 | float bar; | ||
| 41 | }; | 46 | }; |
| 42 | 47 | ||
| 43 | struct move_model { | 48 | struct move_model { |
