瀏覽代碼

Backends: Win32: revert oops chunk.

Amend b0758c8
ocornut 1 年之前
父節點
當前提交
7bbd758681
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      backends/imgui_impl_win32.cpp

+ 0 - 3
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)