This commit is contained in:
Branimir Karadžić 2018-02-06 21:39:50 -08:00
parent adfe3b002b
commit c6f03ab6a3

View File

@ -243,7 +243,10 @@ struct OcornutImguiContext
io.KeyMap[ImGuiKey_Y] = (int)entry::Key::KeyY;
io.KeyMap[ImGuiKey_Z] = (int)entry::Key::KeyZ;
io.NavFlags |= ImGuiNavFlags_EnableKeyboard;
io.NavFlags |= 0
| ImGuiNavFlags_EnableGamepad
| 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::;