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(i), (button_mask & (1u << i)) != 0); + } } } // namespace VideoCommon