Fixed incorrect order of arguments in IsMouseClicked(). (#7657, #456)

Amend 85513de24
This commit is contained in:
korenkonder
2024-06-04 17:35:18 +03:00
committed by ocornut
parent a31aa683ff
commit 209edcc247
3 changed files with 6 additions and 2 deletions

View File

@@ -8900,7 +8900,7 @@ bool ImGui::IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id)
bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat)
{
return IsMouseClicked(button, ImGuiKeyOwner_Any, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None);
return IsMouseClicked(button, repeat ? ImGuiInputFlags_Repeat : ImGuiInputFlags_None, ImGuiKeyOwner_Any);
}
bool ImGui::IsMouseClicked(ImGuiMouseButton button, ImGuiInputFlags flags, ImGuiID owner_id)