InputEventJoypadMotion.xml 1.1 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventJoypadMotion" inherits="InputEvent" category="Core" version="3.1">
  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 [code]InputEventJoypadMotion[/code] 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. <demos>
  13. </demos>
  14. <methods>
  15. </methods>
  16. <members>
  17. <member name="axis" type="int" setter="set_axis" getter="get_axis">
  18. Axis identifier. Use one of the [code]JOY_AXIS_*[/code] constants in [@GlobalScope].
  19. </member>
  20. <member name="axis_value" type="float" setter="set_axis_value" getter="get_axis_value">
  21. 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.
  22. </member>
  23. </members>
  24. <constants>
  25. </constants>
  26. </class>