diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2024-05-31 22:31:54 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2024-05-31 22:31:54 -0500 |
| commit | 51b69bb3399544d9d5c271e719975c41ff200d46 (patch) | |
| tree | be9f55e78cf53eab9f579f7c3b70bc73b204bea2 /Source/Core/VideoCommon/OnScreenUI.cpp | |
| parent | 46a89936ae0724bf087a228133f4bd7bd682da3a (diff) | |
VideoCommon: use imgui mouse position event when the mouse position changes
Diffstat (limited to 'Source/Core/VideoCommon/OnScreenUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OnScreenUI.cpp | 3 |
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) |
