From becba594d32ae3bb0d328972b76e97c4e609b702 Mon Sep 17 00:00:00 2001 From: Joseph Walton-Rivers <joseph@walton-rivers.uk> Date: Sun, 18 Jul 2021 21:30:08 +0100 Subject: [PATCH] don't use same variable for both views --- demo/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/main.cpp b/demo/main.cpp index 932f0bf..8b80be9 100644 --- a/demo/main.cpp +++ b/demo/main.cpp @@ -198,6 +198,7 @@ int main(int argc, char* argv[]) { fggl::gfx::Input& input = fggl::gfx::Input::instance(); bool joystickWindow = true; + bool gamepadWindow = true; float time = 0.0f; float dt = 16.0f; @@ -263,7 +264,7 @@ int main(int argc, char* argv[]) { ImGui::End(); // imgui gamepad debug - ImGui::Begin("GamePad", &joystickWindow); + ImGui::Begin("GamePad", &gamepadWindow); for ( int i=0; i<16; i++ ) { std::string title = "GamePad " + std::to_string(i); -- GitLab