MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / SetKeyEventNativeData

Method SetKeyEventNativeData

Engine/Source/ThirdParty/imgui/imgui.cpp:1874–1884  ·  view source on GitHub ↗

[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.

Source from the content-addressed store, hash-verified

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.
1883void ImGuiIO::ClearEventsQueue()
1884{
1885 IM_ASSERT(Ctx != NULL);
1886 ImGuiContext& g = *Ctx;
1887 g.InputEventsQueue.clear();

Calls 2

IsNamedKeyFunction · 0.85
IsLegacyKeyFunction · 0.85

Tested by

no test coverage detected