[client] app: delay showing the escape help for 250ms

This change prevents the help text being shown unless the escape key has
been held for a minimum of 250ms (reduced from 500ms).
This commit is contained in:
Geoffrey McRae committed 2021-02-26 10:21:56 +11:00
1 parent 521ac706c1
commit f3b46e6d4f
4 files changed
+27 -6

No files matched your search

+4 -1
View File
@@ -157,7 +157,8 @@ static int renderThread(void * unused)
}
}
if (!g_state.resizeDone && g_state.resizeTimeout < microtime())
const uint64_t now = microtime();
if (!g_state.resizeDone && g_state.resizeTimeout < now)
{
g_state.ds->setWindowSize(
g_state.dstRect.w,
@@ -165,6 +166,8 @@ static int renderThread(void * unused)
);
g_state.resizeDone = true;
}
app_handleRenderEvent(now);
}
g_state.state = APP_STATE_SHUTDOWN;