mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Added IsAnyMouseDown() helper.
Examples: DirectX9/10/11: Using IsAnyMouseDown() instead of local function.
This commit is contained in:
		| @@ -4526,6 +4526,15 @@ bool ImGui::IsMouseDown(int button) | ||||
|     return g.IO.MouseDown[button]; | ||||
| } | ||||
|  | ||||
| bool ImGui::IsAnyMouseDown() | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|     for (int n = 0; n < IM_ARRAYSIZE(g.IO.MouseDown); n++) | ||||
|         if (g.IO.MouseDown[n]) | ||||
|             return true; | ||||
|     return false; | ||||
| } | ||||
|  | ||||
| bool ImGui::IsMouseClicked(int button, bool repeat) | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user