From 42a5c2bf69ccc95eb003623298507acd75c5ea85 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 19 May 2009 21:41:44 +0000 Subject: [PATCH] Increased the autorepeat delay in the ncurses and SLang drivers. Now that we have dirty rectangles, fast autorepeat becomes perfectly usable. --- caca/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caca/event.c b/caca/event.c index 792d7d3..ef829c9 100644 --- a/caca/event.c +++ b/caca/event.c @@ -36,7 +36,7 @@ static int _lowlevel_event(caca_display_t *, caca_privevent_t *); /* Start repeating key after AUTOREPEAT_TRIGGER usec and send keypress * events every AUTOREPEAT_RATE usec. */ #define AUTOREPEAT_TRIGGER 300000 -#define AUTOREPEAT_RATE 100000 +#define AUTOREPEAT_RATE 20000 #endif /** \brief Get the next mouse or keyboard input event. @@ -90,7 +90,7 @@ int caca_get_event(caca_display_t *dp, int event_mask, /* If there is no timeout, sleep and try again. */ if(timeout < 0) { - _caca_sleep(10000); + _caca_sleep(1000); continue; }