InputEventMouseMotion

Inherits: InputEventMouse < InputEventWithModifiers < InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for mouse motion events.

Properties

Vector2 relative Vector2( 0, 0 )
Vector2 speed Vector2( 0, 0 )

Description

Contains mouse motion information. Supports relative, absolute positions and speed. See Node._input.

Property Descriptions

Default Vector2( 0, 0 )
Setter set_relative(value)
Getter get_relative()

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

Default Vector2( 0, 0 )
Setter set_speed(value)
Getter get_speed()

The mouse speed in pixels per second.