Test whether the last item was clicked while hovered.
mouse_button
ImGuiMouseButton index: 0 left, 1 right, 2 middle.
True if the mouse button was clicked while the last item was hovered this frame (not equivalent to Button activation); false otherwise.
is the last item hovered and mouse clicked on?
(**) == IsMouseClicked(mouse_button) && IsItemHovered()Important.
(**) this is NOT equivalent to the behavior of e.g. Button().
Read comments in function definition.
Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0
Test whether the last item was clicked while hovered.