瀏覽代碼

Increased the autorepeat delay in the ncurses and SLang drivers. Now that

we have dirty rectangles, fast autorepeat becomes perfectly usable.
tags/v0.99.beta17
Sam Hocevar sam 15 年之前
父節點
當前提交
42a5c2bf69
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      caca/event.c

+ 2
- 2
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;
}



Loading…
取消
儲存