Input event type for mouse motion events.
    public class InputEventMouseMotion : InputEventMouse

Contains mouse motion information. Supports relative, absolute positions and speed. See Node._Input(Godot.InputEvent).

Inheritance Chain

Constructors

    public InputEventMouseMotion()

Properties

    public Vector2 Relative { get; set; }

The mouse position relative to the previous position (position at the last frame).

    public Vector2 Speed { get; set; }

The mouse speed in pixels per second.

Methods

    [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("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: