From 32750a682499db7689f88a61b0ee279842900c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 2 Jun 2015 19:25:37 -0700 Subject: [PATCH] Removed imgui dependency on input. --- examples/common/imgui/ocornut_imgui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/common/imgui/ocornut_imgui.cpp b/examples/common/imgui/ocornut_imgui.cpp index 7cc6448b..aab12370 100644 --- a/examples/common/imgui/ocornut_imgui.cpp +++ b/examples/common/imgui/ocornut_imgui.cpp @@ -7,7 +7,6 @@ #include #include #include -#include "../entry/input.h" #include "imgui.h" #include "ocornut_imgui.h" #include @@ -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();