| 7906 | |
| 7907 | #ifndef IMGUI_DISABLE_OBSOLETE_KEYIO |
| 7908 | ImGuiKey ImGui::GetKeyIndex(ImGuiKey key) |
| 7909 | { |
| 7910 | ImGuiContext& g = *GImGui; |
| 7911 | IM_ASSERT(IsNamedKey(key)); |
| 7912 | const ImGuiKeyData* key_data = GetKeyData(key); |
| 7913 | return (ImGuiKey)(key_data - g.IO.KeysData); |
| 7914 | } |
| 7915 | #endif |
| 7916 | |
| 7917 | // Those names a provided for debugging purpose and are not meant to be saved persistently not compared. |
nothing calls this directly
no test coverage detected