API reference
Preparing search index…

ImGui.IsMouseDragging

  • Is mouse dragging?

    Parameters

    button
    number

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

    lock_threshold
    number = -1.0

    Minimum drag distance in pixels before dragging is recognized; -1 uses io.MouseDragThreshold.

    Returns

    boolean

    True if the button is held and its drag distance passed the lock threshold; false otherwise.

    If lock_threshold < 0.0, use io.MouseDragThreshold, where io is the field view returned by ImGui.viewImGuiIO(ioHandle).

    Source & inheritance

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