diff options
| author | Scott Mansell <phiren@gmail.com> | 2024-06-05 18:50:26 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-05 18:50:26 +1200 |
| commit | dbe7616bdd2cc8420e5784c40a5e7fb11c554baf (patch) | |
| tree | d6e414ae25b3592c92aa4b541698c43594d78294 /Source | |
| parent | a57962cedb04229a61c4c3c58bad7b867340b6aa (diff) | |
| parent | 51b69bb3399544d9d5c271e719975c41ff200d46 (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.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) |
