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

API: engine
Project: Inno.Editor.ImGui

public static System.Numerics.Vector2 Inno.Editor.ImGui.ImGui.GetMouseDragDelta(Inno.Editor.ImGui.ImGuiMouseButton button = Inno.Editor.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.