mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-22 15:28:08 +00:00
[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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user