From cb28b22fd3c543c5eb3ae90326868d28531422f3 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Thu, 25 Jul 2019 23:27:54 +0200 Subject: [PATCH] Don't support gamepad (remove directinput dependency) --- ImGui/impls/imgui_impl_win32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ImGui/impls/imgui_impl_win32.cpp b/ImGui/impls/imgui_impl_win32.cpp index 85dede4..3e2f72d 100644 --- a/ImGui/impls/imgui_impl_win32.cpp +++ b/ImGui/impls/imgui_impl_win32.cpp @@ -146,6 +146,7 @@ static void ImGui_ImplWin32_UpdateMousePos() io.MousePos = ImVec2((float)pos.x, (float)pos.y); } +/* #ifdef _MSC_VER #pragma comment(lib, "xinput") #endif @@ -196,6 +197,7 @@ static void ImGui_ImplWin32_UpdateGamepads() #undef MAP_ANALOG } } +*/ void ImGui_ImplWin32_NewFrame() { @@ -232,7 +234,7 @@ void ImGui_ImplWin32_NewFrame() } // Update game controllers (if enabled and available) - ImGui_ImplWin32_UpdateGamepads(); + //ImGui_ImplWin32_UpdateGamepads(); } // Allow compilation with old Windows SDK. MinGW doesn't have default _WIN32_WINNT/WINVER versions.