Nav: Examples: Glfw+GL3: Added basic gamepad mapping code when io.NavFlags & ImGuiNavFlags_EnableGamepad is set. (will iterate/tweak before spreading to other examples). (#787)

This commit is contained in:
omar
2018-01-25 16:18:57 +01:00
parent e9070e768e
commit 827f4b17d3
2 changed files with 28 additions and 0 deletions

View File

@ -35,6 +35,7 @@ int main(int, char**)
ImGuiIO& io = ImGui::GetIO(); (void)io;
ImGui_ImplGlfwGL3_Init(window, true);
//io.NavFlags |= ImGuiNavFlags_EnableKeyboard;
//io.NavFlags |= ImGuiNavFlags_EnableGamepad;
// Setup style
ImGui::StyleColorsClassic();