API reference
Preparing search index…

ImGui.IsMouseClicked

  • Test whether a mouse button was newly pressed this frame, without repeating while held.

    Parameters

    button
    number

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

    Returns

    boolean

    True if the mouse button was pressed this frame, including repeat events if requested; false otherwise.

    did mouse button clicked?

    (went from !Down to Down).

    Same as GetMouseClickedCount() == 1.

    Implied repeat = false

    Source & inheritance

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