summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2024-06-05 18:50:26 +1200
committerGitHub <noreply@github.com>2024-06-05 18:50:26 +1200
commitdbe7616bdd2cc8420e5784c40a5e7fb11c554baf (patch)
treed6e414ae25b3592c92aa4b541698c43594d78294 /Source
parenta57962cedb04229a61c4c3c58bad7b867340b6aa (diff)
parent51b69bb3399544d9d5c271e719975c41ff200d46 (diff)
Merge pull request #12817 from iwubcode/imgui-mouse-position-event
VideoCommon: use imgui mouse position event when the mouse position changes
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/OnScreenUI.cpp3
1 files changed, 1 insertions, 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)