API reference
Preparing search index…

ImGui.IsItemClickedEx

  • Test whether the last item was clicked while hovered.

    Parameters

    mouse_button
    number = 0

    ImGuiMouseButton index: 0 left, 1 right, 2 middle.

    Returns

    boolean

    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.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0