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; }

Mouse position relative to the previous position (position at the last frame).

    public Vector2 Speed { get; set; }

Mouse speed.

Methods

    public Vector2 GetRelative()

Getter for Relative

    public Vector2 GetSpeed()

Getter for Speed

    public void SetRelative(Vector2 relative)

Setter for Relative

    public void SetSpeed(Vector2 speed)

Setter for Speed

Tags: