This commit is contained in:
Branimir Karadžić 2018-02-06 21:35:36 -08:00
parent e8658e7c06
commit adfe3b002b

View File

@ -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::;