mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Internal: Added owner aware variant of IsMouseDoubleClicked() for consistency.
Amend 4448d97. Note that functions entry points will eventually be merged into one, so this is not a problem.
			
			
This commit is contained in:
		@@ -8490,6 +8490,13 @@ bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button)
 | 
				
			|||||||
    return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any);
 | 
					    return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), ImGuiKeyOwner_Any);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool ImGui::IsMouseDoubleClicked(ImGuiMouseButton button, ImGuiID owner_id)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    ImGuiContext& g = *GImGui;
 | 
				
			||||||
 | 
					    IM_ASSERT(button >= 0 && button < IM_ARRAYSIZE(g.IO.MouseDown));
 | 
				
			||||||
 | 
					    return g.IO.MouseClickedCount[button] == 2 && TestKeyOwner(MouseButtonToKey(button), owner_id);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int ImGui::GetMouseClickedCount(ImGuiMouseButton button)
 | 
					int ImGui::GetMouseClickedCount(ImGuiMouseButton button)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    ImGuiContext& g = *GImGui;
 | 
					    ImGuiContext& g = *GImGui;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3129,6 +3129,7 @@ namespace ImGui
 | 
				
			|||||||
    IMGUI_API bool              IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id);
 | 
					    IMGUI_API bool              IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id);
 | 
				
			||||||
    IMGUI_API bool              IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0);
 | 
					    IMGUI_API bool              IsMouseClicked(ImGuiMouseButton button, ImGuiID owner_id, ImGuiInputFlags flags = 0);
 | 
				
			||||||
    IMGUI_API bool              IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id);
 | 
					    IMGUI_API bool              IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id);
 | 
				
			||||||
 | 
					    IMGUI_API bool              IsMouseDoubleClicked(ImGuiMouseButton button, ImGuiID owner_id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // [EXPERIMENTAL] Shortcut Routing
 | 
					    // [EXPERIMENTAL] Shortcut Routing
 | 
				
			||||||
    // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super.
 | 
					    // - ImGuiKeyChord = a ImGuiKey optionally OR-red with ImGuiMod_Alt/ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Super.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user