|
1 | | -// dear imgui, v1.89.6 WIP |
| 1 | +// dear imgui, v1.89.6 |
2 | 2 | // (main code and documentation) |
3 | 3 |
|
4 | 4 | // Help: |
|
11 | 11 | // - FAQ http://dearimgui.com/faq |
12 | 12 | // - Homepage & latest https://github.com/ocornut/imgui |
13 | 13 | // - Releases & changelog https://github.com/ocornut/imgui/releases |
14 | | -// - Gallery https://github.com/ocornut/imgui/issues/5886 (please post your screenshots/video there!) |
| 14 | +// - Gallery https://github.com/ocornut/imgui/issues/6478 (please post your screenshots/video there!) |
15 | 15 | // - Wiki https://github.com/ocornut/imgui/wiki (lots of good stuff there) |
16 | 16 | // - Glossary https://github.com/ocornut/imgui/wiki/Glossary |
17 | 17 | // - Issues & support https://github.com/ocornut/imgui/issues |
@@ -4916,7 +4916,7 @@ void ImGui::EndFrame() |
4916 | 4916 | ImGuiPlatformImeData* ime_data = &g.PlatformImeData; |
4917 | 4917 | if (g.IO.SetPlatformImeDataFn && memcmp(ime_data, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0) |
4918 | 4918 | { |
4919 | | - IMGUI_DEBUG_LOG_IO("Calling io.SetPlatformImeDataFn(): WantVisible: %d, InputPos (%.2f,%.2f)\n", ime_data->WantVisible, ime_data->InputPos.x, ime_data->InputPos.y); |
| 4919 | + IMGUI_DEBUG_LOG_IO("[io] Calling io.SetPlatformImeDataFn(): WantVisible: %d, InputPos (%.2f,%.2f)\n", ime_data->WantVisible, ime_data->InputPos.x, ime_data->InputPos.y); |
4920 | 4920 | ImGuiViewport* viewport = GetMainViewport(); |
4921 | 4921 | #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
4922 | 4922 | if (viewport->PlatformHandleRaw == NULL && g.IO.ImeWindowHandle != NULL) |
@@ -8559,7 +8559,7 @@ static void LockWheelingWindow(ImGuiWindow* window, float wheel_amount) |
8559 | 8559 | g.WheelingWindowReleaseTimer = 0.0f; |
8560 | 8560 | if (g.WheelingWindow == window) |
8561 | 8561 | return; |
8562 | | - IMGUI_DEBUG_LOG_IO("LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); |
| 8562 | + IMGUI_DEBUG_LOG_IO("[io] LockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL"); |
8563 | 8563 | g.WheelingWindow = window; |
8564 | 8564 | g.WheelingWindowRefMousePos = g.IO.MousePos; |
8565 | 8565 | if (window == NULL) |
@@ -8723,12 +8723,12 @@ static const char* GetMouseSourceName(ImGuiMouseSource source) |
8723 | 8723 | static void DebugPrintInputEvent(const char* prefix, const ImGuiInputEvent* e) |
8724 | 8724 | { |
8725 | 8725 | ImGuiContext& g = *GImGui; |
8726 | | - if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("%s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("%s: MousePos (%.1f, %.1f) (%s)\n", prefix, e->MousePos.PosX, e->MousePos.PosY, GetMouseSourceName(e->MouseWheel.MouseSource)); return; } |
8727 | | - if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("%s: MouseButton %d %s (%s)\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up", GetMouseSourceName(e->MouseWheel.MouseSource)); return; } |
8728 | | - if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("%s: MouseWheel (%.3f, %.3f) (%s)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY, GetMouseSourceName(e->MouseWheel.MouseSource)); return; } |
8729 | | - if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("%s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } |
8730 | | - if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("%s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } |
8731 | | - if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("%s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } |
| 8726 | + if (e->Type == ImGuiInputEventType_MousePos) { if (e->MousePos.PosX == -FLT_MAX && e->MousePos.PosY == -FLT_MAX) IMGUI_DEBUG_LOG_IO("[io] %s: MousePos (-FLT_MAX, -FLT_MAX)\n", prefix); else IMGUI_DEBUG_LOG_IO("[io] %s: MousePos (%.1f, %.1f) (%s)\n", prefix, e->MousePos.PosX, e->MousePos.PosY, GetMouseSourceName(e->MouseWheel.MouseSource)); return; } |
| 8727 | + if (e->Type == ImGuiInputEventType_MouseButton) { IMGUI_DEBUG_LOG_IO("[io] %s: MouseButton %d %s (%s)\n", prefix, e->MouseButton.Button, e->MouseButton.Down ? "Down" : "Up", GetMouseSourceName(e->MouseWheel.MouseSource)); return; } |
| 8728 | + if (e->Type == ImGuiInputEventType_MouseWheel) { IMGUI_DEBUG_LOG_IO("[io] %s: MouseWheel (%.3f, %.3f) (%s)\n", prefix, e->MouseWheel.WheelX, e->MouseWheel.WheelY, GetMouseSourceName(e->MouseWheel.MouseSource)); return; } |
| 8729 | + if (e->Type == ImGuiInputEventType_Key) { IMGUI_DEBUG_LOG_IO("[io] %s: Key \"%s\" %s\n", prefix, ImGui::GetKeyName(e->Key.Key), e->Key.Down ? "Down" : "Up"); return; } |
| 8730 | + if (e->Type == ImGuiInputEventType_Text) { IMGUI_DEBUG_LOG_IO("[io] %s: Text: %c (U+%08X)\n", prefix, e->Text.Char, e->Text.Char); return; } |
| 8731 | + if (e->Type == ImGuiInputEventType_Focus) { IMGUI_DEBUG_LOG_IO("[io] %s: AppFocused %d\n", prefix, e->AppFocused.Focused); return; } |
8732 | 8732 | } |
8733 | 8733 | #endif |
8734 | 8734 |
|
|
0 commit comments