MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetKeyIndex

Method GetKeyIndex

KBotExt/imgui/imgui.cpp:7908–7914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7906
7907#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO
7908ImGuiKey ImGui::GetKeyIndex(ImGuiKey key)
7909{
7910 ImGuiContext& g = *GImGui;
7911 IM_ASSERT(IsNamedKey(key));
7912 const ImGuiKeyData* key_data = GetKeyData(key);
7913 return (ImGuiKey)(key_data - g.IO.KeysData);
7914}
7915#endif
7916
7917// Those names a provided for debugging purpose and are not meant to be saved persistently not compared.

Callers

nothing calls this directly

Calls 2

IsNamedKeyFunction · 0.85
GetKeyDataFunction · 0.85

Tested by

no test coverage detected