MCPcopy Create free account
hub / github.com/cinder/Cinder / GetKeyData

Method GetKeyData

src/imgui/imgui.cpp:9225–9235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9223}
9224
9225ImGuiKeyData* ImGui::GetKeyData(ImGuiContext* ctx, ImGuiKey key)
9226{
9227 ImGuiContext& g = *ctx;
9228
9229 // Special storage location for mods
9230 if (key & ImGuiMod_Mask_)
9231 key = ConvertSingleModFlagToKey(key);
9232
9233 IM_ASSERT(IsNamedKey(key) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend & user code.");
9234 return &g.IO.KeysData[key - ImGuiKey_NamedKey_BEGIN];
9235}
9236
9237// Those names are provided for debugging purpose and are not meant to be saved persistently nor compared.
9238static const char* const GKeyNames[] =

Callers

nothing calls this directly

Calls 2

IsNamedKeyFunction · 0.85

Tested by

no test coverage detected