MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / AddInputCharactersUTF8

Method AddInputCharactersUTF8

extern/imgui/imgui.cpp:1315–1326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313}
1314
1315void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars)
1316{
1317 if (!AppAcceptingEvents)
1318 return;
1319 while (*utf8_chars != 0)
1320 {
1321 unsigned int c = 0;
1322 utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL);
1323 if (c != 0)
1324 AddInputCharacter(c);
1325 }
1326}
1327
1328// FIXME: Perhaps we could clear queued events as well?
1329void ImGuiIO::ClearInputCharacters()

Callers

nothing calls this directly

Calls 1

ImTextCharFromUtf8Function · 0.85

Tested by

no test coverage detected