.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_InputEventJoypadButton: InputEventJoypadButton ====================== **Inherits:** :ref:`InputEvent` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Input event type for joypad button events. Member Functions ---------------- +----------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_button_index` **(** **)** const | +----------------------------+-------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_pressure` **(** **)** const | +----------------------------+-------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_button_index` **(** :ref:`int` button_index **)** | +----------------------------+-------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pressed` **(** :ref:`bool` pressed **)** | +----------------------------+-------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pressure` **(** :ref:`float` pressure **)** | +----------------------------+-------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`int` **button_index** - Joypad button identifier, one of the JOY_BUTTON_* constants in [@Global Scope]. - :ref:`bool` **pressed** - Pressed state of the joypad button. - :ref:`float` **pressure** - Intensity of the button pressure, ranges from 0 to 1.0. Member Function Description --------------------------- .. _class_InputEventJoypadButton_get_button_index: - :ref:`int` **get_button_index** **(** **)** const .. _class_InputEventJoypadButton_get_pressure: - :ref:`float` **get_pressure** **(** **)** const .. _class_InputEventJoypadButton_set_button_index: - void **set_button_index** **(** :ref:`int` button_index **)** .. _class_InputEventJoypadButton_set_pressed: - void **set_pressed** **(** :ref:`bool` pressed **)** .. _class_InputEventJoypadButton_set_pressure: - void **set_pressure** **(** :ref:`float` pressure **)**