| 1115 | } |
| 1116 | |
| 1117 | void ImGuiManager::AddTextInput(std::string str) |
| 1118 | { |
| 1119 | if (!s_imgui_wants_text.load(std::memory_order_acquire)) |
| 1120 | return; |
| 1121 | |
| 1122 | // Has to go through the CPU -> GS thread :( |
| 1123 | Host::RunOnCPUThread([str = std::move(str)]() { |
| 1124 | MTGS::RunOnGSThread([str = std::move(str)]() { |
| 1125 | if (!ImGui::GetCurrentContext()) |
| 1126 | return; |
| 1127 | |
| 1128 | ImGui::GetIO().AddInputCharactersUTF8(str.c_str()); |
| 1129 | }); |
| 1130 | }); |
| 1131 | } |
| 1132 | |
| 1133 | void ImGuiManager::UpdateMousePosition(float x, float y) |
| 1134 | { |
nothing calls this directly
no test coverage detected