MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / GetKeyIndex

Method GetKeyIndex

libs/imgui/imgui.cpp:3431–3435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3429}
3430
3431int ImGui::GetKeyIndex(ImGuiKey imgui_key)
3432{
3433 IM_ASSERT(imgui_key >= 0 && imgui_key < ImGuiKey_COUNT);
3434 return GImGui->IO.KeyMap[imgui_key];
3435}
3436
3437// Note that imgui doesn't know the semantic of each entry of io.KeyDown[]. Use your own indices/enums according to how your backend/engine stored them into KeyDown[]!
3438bool ImGui::IsKeyDown(int user_key_index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected