Pass in translated ASCII characters for text input. - with glfw you can get those from the callback set in glfwSetCharCallback() - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message
| 1089 | // - with glfw you can get those from the callback set in glfwSetCharCallback() |
| 1090 | // - on Windows you can get those using ToAscii+keyboard state, or via the WM_CHAR message |
| 1091 | void ImGuiIO::AddInputCharacter(unsigned int c) |
| 1092 | { |
| 1093 | if (c > 0 && c <= IM_UNICODE_CODEPOINT_MAX) |
| 1094 | InputQueueCharacters.push_back((ImWchar)c); |
| 1095 | } |
| 1096 | |
| 1097 | void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars) |
| 1098 | { |
no test coverage detected