| 10027 | } |
| 10028 | |
| 10029 | ImGuiKeyData* 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. |
| 10042 | static const char* const GKeyNames[] = |
nothing calls this directly
no test coverage detected