MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / GetKeyData

Method GetKeyData

include/imgui/imgui.cpp:9452–9462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9450}
9451
9452ImGuiKeyData* ImGui::GetKeyData(ImGuiContext* ctx, ImGuiKey key)
9453{
9454 ImGuiContext& g = *ctx;
9455
9456 // Special storage location for mods
9457 if (key & ImGuiMod_Mask_)
9458 key = ConvertSingleModFlagToKey(key);
9459
9460 IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code.");
9461 return &g.IO.KeysData[key - ImGuiKey_NamedKey_BEGIN];
9462}
9463
9464// Those names are provided for debugging purpose and are not meant to be saved persistently nor compared.
9465static const char* const GKeyNames[] =

Callers

nothing calls this directly

Calls 2

IsNamedKeyFunction · 0.85

Tested by

no test coverage detected