MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / AddInputCharacter

Method AddInputCharacter

lib/imgui/imgui.cpp:1091–1095  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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
1091void ImGuiIO::AddInputCharacter(unsigned int c)
1092{
1093 if (c > 0 && c <= IM_UNICODE_CODEPOINT_MAX)
1094 InputQueueCharacters.push_back((ImWchar)c);
1095}
1096
1097void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars)
1098{

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected