[client] all: use the defined keyboard mapping for keybinds

Fixes #1007
This commit is contained in:
Geoffrey McRae
2022-06-29 18:24:53 +10:00
parent ed0cae84c8
commit da04a6dd54
12 changed files with 151 additions and 76 deletions

View File

@@ -90,8 +90,7 @@ struct AppState
uint64_t escapeTime;
int escapeAction;
bool escapeHelp;
KeybindHandle bindings[KEY_MAX];
const char * keyDescription[KEY_MAX];
struct ll * bindings;
bool keyDown[KEY_MAX];
bool haveSrcSize;
@@ -227,9 +226,11 @@ struct CBRequest
struct KeybindHandle
{
int sc;
KeybindFn callback;
void * opaque;
int sc;
int charcode;
KeybindFn callback;
const char * description;
void * opaque;
};
enum WarpState