Input event type for screen drag events. Only available on mobile devices.
    public class InputEventScreenDrag : InputEvent

Contains screen drag information. See Node._Input(Godot.InputEvent).

Inheritance Chain

Constructors

    public InputEventScreenDrag()

Properties

    public int Index { get; set; }

The drag event index in the case of a multi-drag event.

    public Vector2 Position { get; set; }

The drag position.

    public Vector2 Relative { get; set; }

The drag position relative to its start position.

    public Vector2 Speed { get; set; }

The drag speed.

Methods

    [Obsolete("GetIndex is deprecated. Use the Index property instead.")]
    public int GetIndex()

Getter for Index

    [Obsolete("GetPosition is deprecated. Use the Position property instead.")]
    public Vector2 GetPosition()

Getter for Position

    [Obsolete("GetRelative is deprecated. Use the Relative property instead.")]
    public Vector2 GetRelative()

Getter for Relative

    [Obsolete("GetSpeed is deprecated. Use the Speed property instead.")]
    public Vector2 GetSpeed()

Getter for Speed

    [Obsolete("SetIndex is deprecated. Use the Index property instead.")]
    public void SetIndex(int index)

Setter for Index

    [Obsolete("SetPosition is deprecated. Use the Position property instead.")]
    public void SetPosition(Vector2 position)

Setter for Position

    [Obsolete("SetRelative is deprecated. Use the Relative property instead.")]
    public void SetRelative(Vector2 relative)

Setter for Relative

    [Obsolete("SetSpeed is deprecated. Use the Speed property instead.")]
    public void SetSpeed(Vector2 speed)

Setter for Speed

Tags: