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/gestures-combo.c | |
| 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/gestures-combo.c')
| -rw-r--r-- | src/gestures-combo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gestures-combo.c b/src/gestures-combo.c index 6ce6197..5b6de5b 100644 --- a/src/gestures-combo.c +++ b/src/gestures-combo.c | |||
| @@ -61,10 +61,10 @@ int gru_combo(struct grail *ge, | |||
| 61 | } | 61 | } |
| 62 | if (!(move->active & fm_mask)) | 62 | if (!(move->active & fm_mask)) |
| 63 | return 0; | 63 | return 0; |
| 64 | prop[0] = move->fm[FM_X].delta; | 64 | prop[0] = move->fm[FM_X].action_delta; |
| 65 | prop[1] = move->fm[FM_Y].delta; | 65 | prop[1] = move->fm[FM_Y].action_delta; |
| 66 | prop[2] = move->fm[FM_R].delta; | 66 | prop[2] = move->fm[FM_R].action_delta; |
| 67 | prop[3] = move->fm[FM_A].delta; | 67 | prop[3] = move->fm[FM_A].action_delta; |
| 68 | gru_event(ge, state->gid, move, prop, 4); | 68 | gru_event(ge, state->gid, move, prop, 4); |
| 69 | return 1; | 69 | return 1; |
| 70 | } | 70 | } |
