From 9a084b582ca7a5d2a600d7d739220ec05a3e40a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Sun, 30 Mar 2025 18:34:00 +0200 Subject: [PATCH] fix in imgui docking sample --- .../Example_ImGui_Docking.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Samples/Example_ImGui_Docking/Example_ImGui_Docking.cpp b/Samples/Example_ImGui_Docking/Example_ImGui_Docking.cpp index 3fef609c5..c62ff21f1 100644 --- a/Samples/Example_ImGui_Docking/Example_ImGui_Docking.cpp +++ b/Samples/Example_ImGui_Docking/Example_ImGui_Docking.cpp @@ -650,7 +650,7 @@ void Example_ImGuiRenderer::Update(float dt) CONTENT_DIR "models/emitter_skinned.wiscene", CONTENT_DIR "models/physics_test.wiscene", CONTENT_DIR "models/shadows_test.wiscene", - CONTENT_DIR "models/Sponza/sponza.wiscene", + CONTENT_DIR "models/Sponza/Sponza.wiscene", CONTENT_DIR "models/emitter_fire.wiscene" }; @@ -1525,17 +1525,17 @@ void Example_ImGuiRenderer::Update(float dt) XMStoreFloat3(&dir_right, camera.GetRight()); if ((ImGui::IsKeyDown(ImGuiKey_D) || ImGui::IsKeyDown(ImGuiKey_RightArrow))) //D Right - { - camera_pos[0] += -movespeed * dir_right.x; - camera_pos[1] += -movespeed * dir_right.y; - camera_pos[2] += -movespeed * dir_right.z; - } - if ((ImGui::IsKeyDown(ImGuiKey_A) || ImGui::IsKeyDown(ImGuiKey_LeftArrow))) //A Left { camera_pos[0] += movespeed * dir_right.x; camera_pos[1] += movespeed * dir_right.y; camera_pos[2] += movespeed * dir_right.z; } + if ((ImGui::IsKeyDown(ImGuiKey_A) || ImGui::IsKeyDown(ImGuiKey_LeftArrow))) //A Left + { + camera_pos[0] -= movespeed * dir_right.x; + camera_pos[1] -= movespeed * dir_right.y; + camera_pos[2] -= movespeed * dir_right.z; + } } camera_transform.ClearTransform();