API reference
Preparing search index…

ImGui.GetMouseDragDelta

  • Get the mouse displacement since dragging began.

    Parameters

    button
    number = 0

    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

    Copied {x: dx, y: dy} screen-pixel displacement from the drag start; zero until the drag threshold is passed.

    return the delta from the initial clicking position while the mouse button is pressed or was just released.

    The result stays zero until the mouse passes the distance threshold at least once. 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