mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 03:47:00 +00:00
parent
b0758c86d8
commit
7bbd758681
@ -566,8 +566,6 @@ static ImGuiMouseSource GetMouseSourceFromMessageExtraInfo()
|
|||||||
return ImGuiMouseSource_Mouse;
|
return ImGuiMouseSource_Mouse;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "imgui_internal.h"
|
|
||||||
|
|
||||||
IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
if (ImGui::GetCurrentContext() == nullptr)
|
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;
|
vk = IM_VK_KEYPAD_ENTER;
|
||||||
const ImGuiKey key = ImGui_ImplWin32_VirtualKeyToImGuiKey(vk);
|
const ImGuiKey key = ImGui_ImplWin32_VirtualKeyToImGuiKey(vk);
|
||||||
const int scancode = (int)LOBYTE(HIWORD(lParam));
|
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.
|
// Special behavior for VK_SNAPSHOT / ImGuiKey_PrintScreen as Windows doesn't emit the key down event.
|
||||||
if (key == ImGuiKey_PrintScreen && !is_key_down)
|
if (key == ImGuiKey_PrintScreen && !is_key_down)
|
||||||
|
Loading…
Reference in New Issue
Block a user