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

Method GetKeyData

imgui_tiny_app/imgui/imgui.cpp:10029–10039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10027}
10028
10029ImGuiKeyData* ImGui::GetKeyData(ImGuiContext* ctx, ImGuiKey key)
10030{
10031 ImGuiContext& g = *ctx;
10032
10033 // Special storage location for mods
10034 if (key & ImGuiMod_Mask_)
10035 key = ConvertSingleModFlagToKey(key);
10036
10037 IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code.");
10038 return &g.IO.KeysData[key - ImGuiKey_NamedKey_BEGIN];
10039}
10040
10041// Those names are provided for debugging purpose and are not meant to be saved persistently nor compared.
10042static const char* const GKeyNames[] =

Callers

nothing calls this directly

Calls 2

IsNamedKeyFunction · 0.85

Tested by

no test coverage detected