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

  • Using InputEvent

    Properties

    Property Descriptions

  • int button_mask ButtonList button masks.

  • Vector2 global_position Node._input or Node._unhandled_input, returns the mouse’s position in the root Viewport using the coordinate system of the root Viewport. Control._gui_input, returns the mouse’s position in the CanvasLayer that the Control is in using the coordinate system of the CanvasLayer.

  • Vector2 position 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. Control._gui_input, returns the mouse’s position in the Control using the local coordinate system of the Control.