[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
2021-02-26 10:21:56 +11:00
parent 521ac706c1
commit f3b46e6d4f
4 changed files with 27 additions and 6 deletions

View File

@@ -51,6 +51,7 @@ struct AppState
bool escapeActive;
uint64_t escapeTime;
int escapeAction;
bool escapeHelp;
KeybindHandle bindings[KEY_MAX];
const char * keyDescription[KEY_MAX];
bool keyDown[KEY_MAX];