From adfe3b002b75c5dba2902c87cc969cb59a39391a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 6 Feb 2018 21:35:36 -0800 Subject: [PATCH] Cleanup. --- examples/common/imgui/imgui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 3cfda88a5..cb61e4421 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -13,6 +13,8 @@ #include "imgui.h" #include "../bgfx_utils.h" +//#define USE_ENTRY 1 + #ifndef USE_ENTRY # if defined(SCI_NAMESPACE) # define USE_ENTRY 1 @@ -241,6 +243,7 @@ struct OcornutImguiContext io.KeyMap[ImGuiKey_Y] = (int)entry::Key::KeyY; io.KeyMap[ImGuiKey_Z] = (int)entry::Key::KeyZ; + io.NavFlags |= ImGuiNavFlags_EnableKeyboard; io.NavInputs[ImGuiNavInput_Activate] = (int)entry::Key::GamepadA; io.NavInputs[ImGuiNavInput_Cancel] = (int)entry::Key::GamepadB; // io.NavInputs[ImGuiNavInput_Input] = (int)entry::Key::;