| 1095 | } |
| 1096 | |
| 1097 | void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) |
| 1098 | { |
| 1099 | while (*utf8_chars != 0) |
| 1100 | { |
| 1101 | unsigned int c = 0; |
| 1102 | utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL); |
| 1103 | if (c > 0 && c <= IM_UNICODE_CODEPOINT_MAX) |
| 1104 | InputQueueCharacters.push_back((ImWchar)c); |
| 1105 | } |
| 1106 | } |
| 1107 | |
| 1108 | void ImGuiIO::ClearInputCharacters() |
| 1109 | { |
no test coverage detected