MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / AddKeyEvent

Method AddKeyEvent

extern/imgui/imgui.cpp:1418–1423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1416}
1417
1418void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down)
1419{
1420 if (!AppAcceptingEvents)
1421 return;
1422 AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f);
1423}
1424
1425// [Optional] Call after AddKeyEvent().
1426// Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected