Sfoglia il codice sorgente

Removed imgui dependency on input.

Branimir Karadžić 10 anni fa
parent
commit
32750a6824
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      examples/common/imgui/ocornut_imgui.cpp

+ 2 - 1
examples/common/imgui/ocornut_imgui.cpp

@@ -7,7 +7,6 @@
 #include <bx/allocator.h>
 #include <bx/fpumath.h>
 #include <ocornut-imgui/imgui.h>
-#include "../entry/input.h"
 #include "imgui.h"
 #include "ocornut_imgui.h"
 #include <stb/stb_image.c>
@@ -193,6 +192,7 @@ struct OcornutImguiContext
 		io.MousePos = ImVec2((float)_mx, (float)_my);
 		io.MouseDown[0] = 0 != (_button & IMGUI_MBUT_LEFT);
 
+#if 0
 		io.KeysDown[ImGuiKey_Tab]        = inputGetKeyState(entry::Key::Tab);
 		io.KeysDown[ImGuiKey_LeftArrow]  = inputGetKeyState(entry::Key::Left);
 		io.KeysDown[ImGuiKey_RightArrow] = inputGetKeyState(entry::Key::Right);
@@ -210,6 +210,7 @@ struct OcornutImguiContext
 		io.KeysDown[ImGuiKey_X]          = inputGetKeyState(entry::Key::KeyX);
 		io.KeysDown[ImGuiKey_Y]          = inputGetKeyState(entry::Key::KeyY);
 		io.KeysDown[ImGuiKey_Z]          = inputGetKeyState(entry::Key::KeyZ);
+#endif // 0
 
 		ImGui::NewFrame();