class_inputeventjoypadmotion.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the InputEventJoypadMotion.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_InputEventJoypadMotion:
  5. InputEventJoypadMotion
  6. ======================
  7. **Inherits:** :ref:`InputEvent<class_inputevent>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Input event type for gamepad joysticks and other motions. For buttons see ``InputEventJoypadButton``.
  12. Member Variables
  13. ----------------
  14. .. _class_InputEventJoypadMotion_axis:
  15. - :ref:`int<class_int>` **axis** - Axis identifier. Use one of the ``JOY_AXIS_*`` constants in @global Scope.
  16. .. _class_InputEventJoypadMotion_axis_value:
  17. - :ref:`float<class_float>` **axis_value** - Current position of the joystick on the given axis. The value ranges from ``-1.0`` to ``1.0``. A value of ``0`` means the axis is in its resting position.
  18. Description
  19. -----------
  20. Stores information about joystick motions. One ``InputEventJoypadMotion`` represents one axis at a time.