Table of Contents

Class InputEventJoypadButton

Represents a gamepad button being pressed or released.

Inheritance
InputEventJoypadButton

Remarks

Input event type for gamepad buttons. For gamepad analog sticks and joysticks, see InputEventJoypadMotion.

See Also

Properties

button_index

Button identifier. One of the JoyButton button constants.

var button_index : int = 0

Property Value

int

Remarks

  • void set_button_index(int value)
  • int get_button_index

pressed

If true, the button's state is pressed. If false, the button's state is released.

var pressed : bool = false

Property Value

bool

Remarks

  • void set_pressed(bool value)
  • bool is_pressed

pressure

var pressure : float = 0.0

Property Value

float

Remarks

  • void set_pressure(float value)
  • float get_pressure