InputEventJoypadMotion.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventJoypadMotion" inherits="InputEvent" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Input event type for gamepad joysticks and other motions. For buttons see [code]InputEventJoypadMotion[/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. http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html
  11. </tutorials>
  12. <demos>
  13. </demos>
  14. <methods>
  15. <method name="get_axis" qualifiers="const">
  16. <return type="int">
  17. </return>
  18. <description>
  19. </description>
  20. </method>
  21. <method name="get_axis_value" qualifiers="const">
  22. <return type="float">
  23. </return>
  24. <description>
  25. </description>
  26. </method>
  27. <method name="set_axis">
  28. <return type="void">
  29. </return>
  30. <argument index="0" name="axis" type="int">
  31. </argument>
  32. <description>
  33. </description>
  34. </method>
  35. <method name="set_axis_value">
  36. <return type="void">
  37. </return>
  38. <argument index="0" name="axis_value" type="float">
  39. </argument>
  40. <description>
  41. </description>
  42. </method>
  43. </methods>
  44. <members>
  45. <member name="axis" type="int" setter="set_axis" getter="get_axis">
  46. Axis identifier. Use one of the [code]JOY_AXIS_*[/code] constants in [@global Scope].
  47. </member>
  48. <member name="axis_value" type="float" setter="set_axis_value" getter="get_axis_value">
  49. 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.
  50. </member>
  51. </members>
  52. <constants>
  53. </constants>
  54. </class>