diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index 1231851c9a..a7ecb263b4 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -472,8 +472,7 @@ void OnScreenUI::SetMousePos(float x, float y) { auto lock = GetImGuiLock(); - ImGui::GetIO().MousePos.x = x; - ImGui::GetIO().MousePos.y = y; + ImGui::GetIO().AddMousePosEvent(x, y); } void OnScreenUI::SetMousePress(u32 button_mask)