Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Gets accumulated pointer displacement from the current UI drag’s starting position for timeline and canvas controls.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public static System.Numerics.Vector2 InnoEditor.ImGui.ImGui.GetMouseDragDelta(InnoEditor.ImGui.ImGuiMouseButton button = InnoEditor.ImGui.ImGuiMouseButton.Left, float threshold = -1)

Parameter button: The button that owns the drag.

Parameter threshold: Movement required to start dragging, or a negative value to use the Editor’s configured threshold.

Displacement in UI coordinates, or zero before the drag threshold is crossed or when no drag is available. The value is cumulative; it must be applied to a captured starting value, not added again each frame.