API reference
Preparing search index…

ImGui.IsItemClicked

  • Test whether the left mouse button was pressed while hovering the last item.

    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.

    Implied mouse_button = 0

    Source & inheritance

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