W3cubDocs

/Godot 3.1

InputEventMouseMotion

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

Category: Core

Brief Description

Input event type for mouse motion events.

Properties

Vector2 relative
Vector2 speed

Description

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

Tutorials

Property Descriptions

Vector2 relative

Setter set_relative(value)
Getter get_relative()

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

Vector2 speed

Setter set_speed(value)
Getter get_speed()

Mouse speed.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_inputeventmousemotion.html