aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2022-11-12 12:56:48 -0600
committertlatorre <tlatorre@uchicago.edu>2022-11-12 12:56:48 -0600
commit895ff3f3ed5f7c93d33e2c280e57e697143002bf (patch)
tree86691a80744fbad030336ce2c1c90335fb28d677
parent29a7aacc5273d70c94cef0b6077dde574d8e3a4a (diff)
downloadmoji-895ff3f3ed5f7c93d33e2c280e57e697143002bf.tar.gz
moji-895ff3f3ed5f7c93d33e2c280e57e697143002bf.tar.bz2
moji-895ff3f3ed5f7c93d33e2c280e57e697143002bf.zip
increase click time to 1 second
-rw-r--r--vito.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vito.c b/vito.c
index ee5c623..7df02b4 100644
--- a/vito.c
+++ b/vito.c
@@ -2,6 +2,8 @@
#include <sys/time.h>
#include <stdlib.h>
+#define CLICK_TIME 1000
+
#define LEN(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
/* Returns the current time in seconds and milliseconds since the epoch.
@@ -135,7 +137,7 @@ static int released(GtkWidget *widget, gpointer data)
if (diff > 10000) {
current_position = 0;
current_letter = 0;
- } else if (diff > 500) {
+ } else if (diff > CLICK_TIME) {
current_char = alphabet[current_letter % LEN(alphabet)];
if (!strcmp(current_char,LEFT_ARROW)) {
if (current_position > 0) {