From 895ff3f3ed5f7c93d33e2c280e57e697143002bf Mon Sep 17 00:00:00 2001 From: tlatorre Date: Sat, 12 Nov 2022 12:56:48 -0600 Subject: increase click time to 1 second --- vito.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vito.c b/vito.c index ee5c623..7df02b4 100644 --- a/vito.c +++ b/vito.c @@ -2,6 +2,8 @@ #include #include +#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) { -- cgit