summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-02-24 14:15:23 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-03-14 12:55:19 +0100
commitd022a028d2ec34808fa83995e2a0c4a95f28c5b3 (patch)
tree2453823bc7a39b0ece54e911a3f9c9ba6894e03e
parentf2c8bc7e6d661283c714e154b1a92a74cf657462 (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>
-rw-r--r--src/evbuf.h2
-rw-r--r--src/grail-gestures.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/evbuf.h b/src/evbuf.h
index 4a91ae6..d0239d8 100644
--- a/src/evbuf.h
+++ b/src/evbuf.h
@@ -29,7 +29,7 @@
29#ifndef GRAIL_EVBUF_H 29#ifndef GRAIL_EVBUF_H
30#define GRAIL_EVBUF_H 30#define GRAIL_EVBUF_H
31 31
32#define DIM_EVENTS 512 32#define DIM_EVENTS 4096
33 33
34struct evbuf { 34struct evbuf {
35 int head; 35 int head;
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
27static const float FM_SN[DIM_FM] = { 1000, 1000, 200, 1000 }; 27static const float FM_SN[DIM_FM] = { 1000, 1000, 1000, 1000 };
28static const float FM_BAR[DIM_FM] = { 50, 50, 30, 50 }; 28static const float FM_BAR[DIM_FM] = { 50, 50, 50, 50 };
29static const grail_time_t FM_BAR_MS[DIM_FM] = { 300, 300, 10000, 10000 };
30static const grail_time_t FM_HOLD_MS[DIM_FM] = { 60, 60, 60, 60 }; 29static const grail_time_t FM_HOLD_MS[DIM_FM] = { 60, 60, 60, 60 };
30static const grail_time_t FM_BAR_MS[DIM_FM] = { 300, 300, 500, 500 };
31static const grail_time_t SAMPLE_MS = 10; 31static const grail_time_t SAMPLE_MS = 10;
32static const float EPS = 1e-3; 32static const float EPS = 1e-3;
33 33