MCPcopy Create free account
hub / github.com/RenderKit/embree / AddKeyEvent

Method AddKeyEvent

tutorials/common/imgui/imgui.cpp:1377–1382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1375}
1376
1377void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down)
1378{
1379 if (!AppAcceptingEvents)
1380 return;
1381 AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f);
1382}
1383
1384// [Optional] Call after AddKeyEvent().
1385// 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