InputEventJoypadMotion.xml 1.0 KB

123456789101112131415161718192021222324
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventJoypadMotion" inherits="InputEvent" version="3.2">
  3. <brief_description>
  4. Input event type for gamepad joysticks and other motions. For buttons, see [code]InputEventJoypadButton[/code].
  5. </brief_description>
  6. <description>
  7. Stores information about joystick motions. One [InputEventJoypadMotion] represents one axis at a time.
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html</link>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="axis" type="int" setter="set_axis" getter="get_axis" default="0">
  16. Axis identifier. Use one of the [enum JoystickList] axis constants.
  17. </member>
  18. <member name="axis_value" type="float" setter="set_axis_value" getter="get_axis_value" default="0.0">
  19. Current position of the joystick on the given axis. The value ranges from [code]-1.0[/code] to [code]1.0[/code]. A value of [code]0[/code] means the axis is in its resting position.
  20. </member>
  21. </members>
  22. <constants>
  23. </constants>
  24. </class>