diff options
-rw-r--r-- | vito.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |