| 1313 | } |
| 1314 | |
| 1315 | void 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? |
| 1329 | void ImGuiIO::ClearInputCharacters() |
nothing calls this directly
no test coverage detected