InputEventMouse
Inherits: InputEventWithModifiers < InputEvent < Resource < Reference < Object
Inherited By: InputEventMouseButton, InputEventMouseMotion
Base input event type for mouse events.
Description
Stores general mouse events information.
Tutorials
Properties
| ||
| ||
|
Property Descriptions
int button_mask
Default |
|
Setter | set_button_mask(value) |
Getter | get_button_mask() |
The mouse button mask identifier, one of or a bitwise combination of the ButtonList button masks.
Vector2 global_position
Default |
|
Setter | set_global_position(value) |
Getter | get_global_position() |
The global mouse position relative to the current Viewport when used in Control._gui_input, otherwise is at 0,0.
Vector2 position
Default |
|
Setter | set_position(value) |
Getter | get_position() |
The local mouse position relative to the Viewport. If used in Control._gui_input, the position is relative to the current Control which is under the mouse.
© 2014–2021 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.3/classes/class_inputeventmouse.html