InputEventJoypadMotion.xml 1.0 KB

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventJoypadMotion" inherits="InputEvent" version="4.0">
  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 title="InputEvent">https://docs.godotengine.org/en/latest/tutorials/inputs/inputevent.html</link>
  11. </tutorials>
  12. <members>
  13. <member name="axis" type="int" setter="set_axis" getter="get_axis" enum="JoyAxis" default="0">
  14. Axis identifier. Use one of the [enum JoyAxis] axis constants.
  15. </member>
  16. <member name="axis_value" type="float" setter="set_axis_value" getter="get_axis_value" default="0.0">
  17. 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.
  18. </member>
  19. </members>
  20. </class>