From 7bbd758681c48d4bc1c61094c859ba5ea8ba8177 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 5 Oct 2023 20:58:25 +0200 Subject: [PATCH] Backends: Win32: revert oops chunk. Amend b0758c8 --- backends/imgui_impl_win32.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/backends/imgui_impl_win32.cpp b/backends/imgui_impl_win32.cpp index 52f67fa3b..3cf8fc716 100644 --- a/backends/imgui_impl_win32.cpp +++ b/backends/imgui_impl_win32.cpp @@ -566,8 +566,6 @@ static ImGuiMouseSource GetMouseSourceFromMessageExtraInfo() return ImGuiMouseSource_Mouse; } -#include "imgui_internal.h" - IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { if (ImGui::GetCurrentContext() == nullptr) @@ -674,7 +672,6 @@ IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARA vk = IM_VK_KEYPAD_ENTER; const ImGuiKey key = ImGui_ImplWin32_VirtualKeyToImGuiKey(vk); const int scancode = (int)LOBYTE(HIWORD(lParam)); - printf("vk = %X -> key %d, scancode %d\n", vk, key, scancode); // Special behavior for VK_SNAPSHOT / ImGuiKey_PrintScreen as Windows doesn't emit the key down event. if (key == ImGuiKey_PrintScreen && !is_key_down)