MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / AddTextInput

Method AddTextInput

pcsx2/ImGui/ImGuiManager.cpp:1117–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117void 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
1133void ImGuiManager::UpdateMousePosition(float x, float y)
1134{

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected