summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gestures.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gestures.c b/src/gestures.c
index d061f93..977655c 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -26,6 +26,8 @@
26#include "gestures.h" 26#include "gestures.h"
27 27
28static const int FINGER_THUMB_MS = 400; 28static const int FINGER_THUMB_MS = 400;
29static const int BUTTON_HOLD_MS = 200;
30
29/** 31/**
30 * extract_buttons 32 * extract_buttons
31 * 33 *
@@ -49,8 +51,10 @@ static void extract_buttons(struct Gestures *gs, struct MTouch* mt)
49 gs->btdata = btdata; 51 gs->btdata = btdata;
50 mt->mem.btdata = btdata; 52 mt->mem.btdata = btdata;
51 } 53 }
52 if (gs->btmask) 54 if (gs->btmask) {
55 mt_delay_movement(mt, BUTTON_HOLD_MS);
53 SETBIT(gs->type, GS_BUTTON); 56 SETBIT(gs->type, GS_BUTTON);
57 }
54} 58}
55 59
56/** 60/**