[Optional] Call after AddKeyEvent(). Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this.
| 1872 | return; |
| 1873 | const char* str_end = str + strlen(str); |
| 1874 | while (*str != 0) |
| 1875 | { |
| 1876 | unsigned int c = 0; |
| 1877 | str += ImTextCharFromUtf8(&c, str, str_end); |
| 1878 | AddInputCharacter(c); |
| 1879 | } |
| 1880 | } |
| 1881 | |
| 1882 | // Clear all incoming events. |
| 1883 | void ImGuiIO::ClearEventsQueue() |
| 1884 | { |
| 1885 | IM_ASSERT(Ctx != NULL); |
| 1886 | ImGuiContext& g = *Ctx; |
| 1887 | g.InputEventsQueue.clear(); |
no test coverage detected