Branimir Karadžić 7 years ago
parent
commit
adfe3b002b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/common/imgui/imgui.cpp

+ 3 - 0
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::;