Merge pull request #12787 from iwubcode/imgui_mouse_clicks_queue

VideoCommon: use imgui input queue for mouse clicks
This commit is contained in:
Admiral H. Curtiss 2024-05-21 22:01:45 +02:00 committed by GitHub
commit a64b796df0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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