More minor input latency tweaks.

This commit is contained in:
casey langen 2020-11-17 16:04:33 -08:00
parent 7731b3573a
commit ff5217485f
2 changed files with 2 additions and 9 deletions

View File

@ -278,14 +278,10 @@ void App::InitCurses() {
curs_set(0);
mousemask(ALL_MOUSE_EVENTS, nullptr);
mouseinterval(0);
timeout(IDLE_TIMEOUT_MS);
#ifndef WIN32
set_escdelay(20);
timeout(IDLE_TIMEOUT_MS);
#endif
#ifdef WIN32
nodelay(stdscr, true);
#endif
#ifdef WIN32
@ -531,9 +527,6 @@ void App::Run(ILayoutPtr layout) {
WINDOW *c = this->state.focused->GetContent();
keypad(c, TRUE);
wtimeout(c, IDLE_TIMEOUT_MS);
#ifdef WIN32
nodelay(c, true);
#endif
ch = wgetch(c);
}
else {

View File

@ -40,7 +40,7 @@
#include <musikcore/runtime/IMessageQueue.h>
#ifdef WIN32
#define IDLE_TIMEOUT_MS 0
#define IDLE_TIMEOUT_MS 5
#define REDRAW_DEBOUNCE_MS 100
#else
#define IDLE_TIMEOUT_MS 75