[client] imgui: initialize keymap

This allows ImGui to understand some of the basic key presses.

Also moved the include guard from kb.c to kb.h where it actually makes sense.
This commit is contained in:
Quantum
2021-07-30 00:37:57 -04:00
committed by Geoffrey McRae
parent 10a27e7a27
commit 86b50cc8ab
3 changed files with 36 additions and 4 deletions

View File

@@ -53,6 +53,7 @@
#include "app.h"
#include "keybind.h"
#include "clipboard.h"
#include "kb.h"
#include "ll.h"
#include "egl_dynprocs.h"
#include "overlays.h"
@@ -800,6 +801,8 @@ static int lg_run(void)
overlayGraph_register("RENDER", g_state.renderTimings, 0.0f, 50.0f);
overlayGraph_register("UPLOAD", g_state.frameTimings , 0.0f, 50.0f);
initImGuiKeyMap(g_state.io->KeyMap);
// search for the best displayserver ops to use
for(int i = 0; i < LG_DISPLAYSERVER_COUNT; ++i)
if (LG_DisplayServers[i]->probe())