MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / AddKeyEvent

Method AddKeyEvent

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:1592–1597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1590}
1591
1592void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down)
1593{
1594 if (!AppAcceptingEvents)
1595 return;
1596 AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f);
1597}
1598
1599// [Optional] Call after AddKeyEvent().
1600// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices.

Calls

no outgoing calls

Tested by

no test coverage detected