.. 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_InputEventJoystickButton: InputEventJoystickButton ======================== **Category:** Built-In Types Brief Description ----------------- Member Functions ---------------- +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action` **(** :ref:`String` action **)** | +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action_pressed` **(** :ref:`String` is_action_pressed **)** | +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_action_released` **(** :ref:`String` is_action_released **)** | +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_echo` **(** **)** | +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_pressed` **(** **)** | +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_as_action` **(** :ref:`String` action, :ref:`bool` pressed **)** | +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`int` **type** - :ref:`int` **device** - :ref:`int` **ID** - :ref:`int` **button_index** - :ref:`bool` **pressed** - :ref:`float` **pressure** Numeric Constants ----------------- - **NONE** = **0** - **KEY** = **1** - **MOUSE_MOTION** = **2** - **MOUSE_BUTTON** = **3** - **JOYSTICK_MOTION** = **4** - **JOYSTICK_BUTTON** = **5** - **SCREEN_TOUCH** = **6** - **SCREEN_DRAG** = **7** - **ACTION** = **8** Member Function Description --------------------------- .. _class_InputEventJoystickButton_is_action: - :ref:`bool` **is_action** **(** :ref:`String` action **)** .. _class_InputEventJoystickButton_is_action_pressed: - :ref:`bool` **is_action_pressed** **(** :ref:`String` is_action_pressed **)** .. _class_InputEventJoystickButton_is_action_released: - :ref:`bool` **is_action_released** **(** :ref:`String` is_action_released **)** .. _class_InputEventJoystickButton_is_echo: - :ref:`bool` **is_echo** **(** **)** .. _class_InputEventJoystickButton_is_pressed: - :ref:`bool` **is_pressed** **(** **)** .. _class_InputEventJoystickButton_set_as_action: - void **set_as_action** **(** :ref:`String` action, :ref:`bool` pressed **)**