InputEventScreenDrag.xml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventScreenDrag" inherits="InputEvent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. Input event type for screen drag events. Only available on mobile devices.
  5. </brief_description>
  6. <description>
  7. Contains screen drag information. See [method Node._input].
  8. </description>
  9. <tutorials>
  10. <link>$DOCS_URL/tutorials/inputs/inputevent.html</link>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="index" type="int" setter="set_index" getter="get_index" default="0">
  16. The drag event index in the case of a multi-drag event.
  17. </member>
  18. <member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2( 0, 0 )">
  19. The drag position.
  20. </member>
  21. <member name="relative" type="Vector2" setter="set_relative" getter="get_relative" default="Vector2( 0, 0 )">
  22. The drag position relative to the previous position (position at the last frame).
  23. </member>
  24. <member name="speed" type="Vector2" setter="set_speed" getter="get_speed" default="Vector2( 0, 0 )">
  25. The drag speed.
  26. </member>
  27. </members>
  28. <constants>
  29. </constants>
  30. </class>