diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-02-24 14:15:23 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-03-14 12:55:19 +0100 |
| commit | d022a028d2ec34808fa83995e2a0c4a95f28c5b3 (patch) | |
| tree | 2453823bc7a39b0ece54e911a3f9c9ba6894e03e /src/grail-gestures.c | |
| parent | f2c8bc7e6d661283c714e154b1a92a74cf657462 (diff) | |
Adjust gesture buffer sizes and timings
Adjust timings to put drag, pinch and rotate on more equal footing,
with regard to gesture timeouts. Also make sure events are not lost
during hold, now that all MT events are buffered as well.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-gestures.c')
| -rw-r--r-- | src/grail-gestures.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/grail-gestures.c b/src/grail-gestures.c index 458f60d..2c0fc40 100644 --- a/src/grail-gestures.c +++ b/src/grail-gestures.c | |||
| @@ -24,10 +24,10 @@ | |||
| 24 | #include "grail-impl.h" | 24 | #include "grail-impl.h" |
| 25 | #include <math.h> | 25 | #include <math.h> |
| 26 | 26 | ||
| 27 | static const float FM_SN[DIM_FM] = { 1000, 1000, 200, 1000 }; | 27 | static const float FM_SN[DIM_FM] = { 1000, 1000, 1000, 1000 }; |
| 28 | static const float FM_BAR[DIM_FM] = { 50, 50, 30, 50 }; | 28 | static const float FM_BAR[DIM_FM] = { 50, 50, 50, 50 }; |
| 29 | static const grail_time_t FM_BAR_MS[DIM_FM] = { 300, 300, 10000, 10000 }; | ||
| 30 | static const grail_time_t FM_HOLD_MS[DIM_FM] = { 60, 60, 60, 60 }; | 29 | static const grail_time_t FM_HOLD_MS[DIM_FM] = { 60, 60, 60, 60 }; |
| 30 | static const grail_time_t FM_BAR_MS[DIM_FM] = { 300, 300, 500, 500 }; | ||
| 31 | static const grail_time_t SAMPLE_MS = 10; | 31 | static const grail_time_t SAMPLE_MS = 10; |
| 32 | static const float EPS = 1e-3; | 32 | static const float EPS = 1e-3; |
| 33 | 33 | ||
