diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-05-21 22:01:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-21 22:01:45 +0200 |
| commit | a64b796df00d3dcc570128a692015c0a7080fb4e (patch) | |
| tree | bf310b9fa286cbde6f936f2795fcd9a4363b2074 | |
| parent | b9a2c18cb33df3c4099b20f2c718f8a7f07029a6 (diff) | |
| parent | d7a8ec43537976354d77322cdd15f31b60bb317d (diff) | |
Merge pull request #12787 from iwubcode/imgui_mouse_clicks_queue
VideoCommon: use imgui input queue for mouse clicks
| -rw-r--r-- | Source/Core/VideoCommon/OnScreenUI.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index 715f218b05..8f85db85b0 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -481,7 +481,9 @@ void OnScreenUI::SetMousePress(u32 button_mask) auto lock = GetImGuiLock(); for (size_t i = 0; i < std::size(ImGui::GetIO().MouseDown); i++) - ImGui::GetIO().MouseDown[i] = (button_mask & (1u << i)) != 0; + { + ImGui::GetIO().AddMouseButtonEvent(static_cast<int>(i), (button_mask & (1u << i)) != 0); + } } } // namespace VideoCommon |
