InputEventMouse

Inherits: InputEventWithModifiers < InputEvent < Resource < Reference < Object

Inherited By: InputEventMouseMotion, InputEventMouseButton

Category: Core

Brief Description

Base input event type for mouse events.

Member Functions

int get_button_mask ( ) const
Vector2 get_global_position ( ) const
Vector2 get_position ( ) const
void set_button_mask ( int button_mask )
void set_global_position ( Vector2 global_position )
void set_position ( Vector2 position )

Member Variables

  • int button_mask - Mouse button mask identifier, one of or a bitwise combination of the BUTTON_MASK_* constants in [@Global Scope].
  • Vector2 global_position - Global position of the mouse click.
  • Vector2 position - Local position of the mouse click.

Member Function Description

  • int get_button_mask ( ) const
  • Vector2 get_global_position ( ) const
  • void set_button_mask ( int button_mask )
  • void set_global_position ( Vector2 global_position )
  • void set_position ( Vector2 position )