From 51b69bb3399544d9d5c271e719975c41ff200d46 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Fri, 31 May 2024 22:31:54 -0500 Subject: [PATCH] VideoCommon: use imgui mouse position event when the mouse position changes --- Source/Core/VideoCommon/OnScreenUI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)