Merge pull request #12787 from iwubcode/imgui_mouse_clicks_queue
VideoCommon: use imgui input queue for mouse clicks
This commit is contained in:
commit
a64b796df0
|
@ -481,7 +481,9 @@ void OnScreenUI::SetMousePress(u32 button_mask)
|
||||||
auto lock = GetImGuiLock();
|
auto lock = GetImGuiLock();
|
||||||
|
|
||||||
for (size_t i = 0; i < std::size(ImGui::GetIO().MouseDown); i++)
|
for (size_t i = 0; i < std::size(ImGui::GetIO().MouseDown); i++)
|
||||||
ImGui::GetIO().MouseDown[i] = (button_mask & (1u << i)) != 0;
|
{
|
||||||
|
ImGui::GetIO().AddMouseButtonEvent(static_cast<int>(i), (button_mask & (1u << i)) != 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace VideoCommon
|
} // namespace VideoCommon
|
||||||
|
|
Loading…
Reference in New Issue