mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	GetKeyName(): Fixed assert with ImGuiMod_XXX values when IMGUI_DISABLE_OBSOLETE_KEYIO is set.
This commit is contained in:
		| @@ -7911,7 +7911,7 @@ const char* ImGui::GetKeyName(ImGuiKey key) | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
| #ifdef IMGUI_DISABLE_OBSOLETE_KEYIO | ||||
|     IM_ASSERT((IsNamedKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); | ||||
|     IM_ASSERT((IsNamedKeyOrModKey(key) || key == ImGuiKey_None) && "Support for user key indices was dropped in favor of ImGuiKey. Please update backend and user code."); | ||||
| #else | ||||
|     if (IsLegacyKey(key)) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user