InputEventJoypadButton

Inherits: InputEvent < Resource < Reference < Object

Category: Core

Brief Description

Input event type for joypad button events.

Member Functions

int get_button_index ( ) const
float get_pressure ( ) const
void set_button_index ( int button_index )
void set_pressed ( bool pressed )
void set_pressure ( float pressure )

Member Variables

  • int button_index - Joypad button identifier, one of the JOY_BUTTON_* constants in [@Global Scope].
  • bool pressed - Pressed state of the joypad button.
  • float pressure - Intensity of the button pressure, ranges from 0 to 1.0.

Member Function Description

  • int get_button_index ( ) const
  • float get_pressure ( ) const
  • void set_button_index ( int button_index )
  • void set_pressed ( bool pressed )
  • void set_pressure ( float pressure )