diff options
author | tlatorre <tlatorre@uchicago.edu> | 2022-11-12 12:56:48 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2022-11-12 12:56:48 -0600 |
commit | 895ff3f3ed5f7c93d33e2c280e57e697143002bf (patch) | |
tree | 86691a80744fbad030336ce2c1c90335fb28d677 /vito.c | |
parent | 29a7aacc5273d70c94cef0b6077dde574d8e3a4a (diff) | |
download | moji-895ff3f3ed5f7c93d33e2c280e57e697143002bf.tar.gz moji-895ff3f3ed5f7c93d33e2c280e57e697143002bf.tar.bz2 moji-895ff3f3ed5f7c93d33e2c280e57e697143002bf.zip |
increase click time to 1 second
Diffstat (limited to 'vito.c')
-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) { |