Synced
ImGui.GetMouseDragDelta
Section titled “ImGui.GetMouseDragDelta”
- Gets accumulated pointer displacement from the current UI drag’s starting position for timeline and canvas controls.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.ImGui
Declaration
Section titled “Declaration”public static System.Numerics.Vector2 Inno.Editor.ImGui.ImGui.GetMouseDragDelta(Inno.Editor.ImGui.ImGuiMouseButton button = Inno.Editor.ImGui.ImGuiMouseButton.Left, float threshold = -1)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”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.