InputEventMouseButton

Inherits: InputEventMouse < InputEventWithModifiers < InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for mouse button events.

Member Functions

int get_button_index ( ) const
float get_factor ( )
bool is_doubleclick ( ) const
void set_button_index ( int button_index )
void set_doubleclick ( bool doubleclick )
void set_factor ( float factor )
void set_pressed ( bool pressed )

Member Variables

  • int button_index - Mouse button identifier, one of the BUTTON_* or BUTTON_WHEEL_* constants in [@Global Scope].
  • bool doubleclick - Whether the event is a double-click.
  • float factor
  • bool pressed - Pressed state of the mouse button.

Member Function Description

  • int get_button_index ( ) const
  • bool is_doubleclick ( ) const
  • void set_button_index ( int button_index )
  • void set_doubleclick ( bool doubleclick )
  • void set_factor ( float factor )
  • void set_pressed ( bool pressed )