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

  • 使用 InputEvent

    Properties

    Property Descriptions

  • int button_mask ButtonList button masks.

  • Vector2 global_position Viewport when used in Control._gui_input, otherwise is at 0,0.

  • Vector2 position Viewport. If used in Control._gui_input, the position is relative to the current Control which is under the mouse.