Inherits: InputEventWithModifiers < InputEventFromWindow < InputEvent < Resource < RefCounted < Object
Inherited By: InputEventMouseButton, InputEventMouseMotion
Base input event type for mouse events.
Stores general information about mouse events.
BitField<MouseButtonMask> |
| |
| ||
|
0
The mouse button mask identifier, one of or a bitwise combination of the MouseButton button masks.
Vector2(0, 0)
When received in Node._input or Node._unhandled_input, returns the mouse's position in the root Viewport using the coordinate system of the root Viewport.
When received in Control._gui_input, returns the mouse's position in the CanvasLayer that the Control is in using the coordinate system of the CanvasLayer.
Vector2(0, 0)
When received in Node._input or Node._unhandled_input, returns the mouse's position in the Viewport this Node is in using the coordinate system of this Viewport.
When received in Control._gui_input, returns the mouse's position in the Control using the local coordinate system of the Control.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_inputeventmouse.html