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

Method GetKeyData

include/imgui/imgui.cpp:9388–9398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9386}
9387
9388ImGuiKeyData* ImGui::GetKeyData(ImGuiContext* ctx, ImGuiKey key)
9389{
9390 ImGuiContext& g = *ctx;
9391
9392 // Special storage location for mods
9393 if (key & ImGuiMod_Mask_)
9394 key = ConvertSingleModFlagToKey(key);
9395
9396 IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code.");
9397 return &g.IO.KeysData[key - ImGuiKey_NamedKey_BEGIN];
9398}
9399
9400// Those names are provided for debugging purpose and are not meant to be saved persistently nor compared.
9401static const char* const GKeyNames[] =

Callers

nothing calls this directly

Calls 2

IsNamedKeyFunction · 0.85

Tested by

no test coverage detected