MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / IsKeyDown

Method IsKeyDown

imgui_tiny_app/imgui/imgui.cpp:10420–10423  ·  view source on GitHub ↗

Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes. Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87)

Source from the content-addressed store, hash-verified

10418// Note that Dear ImGui doesn't know the meaning/semantic of ImGuiKey from 0..511: they are legacy native keycodes.
10419// Consider transitioning from 'IsKeyDown(MY_ENGINE_KEY_A)' (<1.87) to IsKeyDown(ImGuiKey_A) (>= 1.87)
10420bool ImGui::IsKeyDown(ImGuiKey key)
10421{
10422 return IsKeyDown(key, ImGuiKeyOwner_Any);
10423}
10424
10425bool ImGui::IsKeyDown(ImGuiKey key, ImGuiID owner_id)
10426{

Callers

nothing calls this directly

Calls 1

GetKeyDataFunction · 0.85

Tested by

no test coverage detected