mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-05 21:55:24 +00:00
More minor input latency tweaks.
This commit is contained in:
parent
7731b3573a
commit
ff5217485f
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user