InputEventScreenDrag.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventScreenDrag" inherits="InputEvent" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Input event type for screen drag events.
  5. (only available on mobile devices)
  6. </brief_description>
  7. <description>
  8. Contains screen drag informations. See [method Node._input].
  9. </description>
  10. <tutorials>
  11. http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html
  12. </tutorials>
  13. <demos>
  14. </demos>
  15. <methods>
  16. <method name="get_index" qualifiers="const">
  17. <return type="int">
  18. </return>
  19. <description>
  20. </description>
  21. </method>
  22. <method name="get_position" qualifiers="const">
  23. <return type="Vector2">
  24. </return>
  25. <description>
  26. </description>
  27. </method>
  28. <method name="get_relative" qualifiers="const">
  29. <return type="Vector2">
  30. </return>
  31. <description>
  32. </description>
  33. </method>
  34. <method name="get_speed" qualifiers="const">
  35. <return type="Vector2">
  36. </return>
  37. <description>
  38. </description>
  39. </method>
  40. <method name="set_index">
  41. <return type="void">
  42. </return>
  43. <argument index="0" name="index" type="int">
  44. </argument>
  45. <description>
  46. </description>
  47. </method>
  48. <method name="set_position">
  49. <return type="void">
  50. </return>
  51. <argument index="0" name="position" type="Vector2">
  52. </argument>
  53. <description>
  54. </description>
  55. </method>
  56. <method name="set_relative">
  57. <return type="void">
  58. </return>
  59. <argument index="0" name="relative" type="Vector2">
  60. </argument>
  61. <description>
  62. </description>
  63. </method>
  64. <method name="set_speed">
  65. <return type="void">
  66. </return>
  67. <argument index="0" name="speed" type="Vector2">
  68. </argument>
  69. <description>
  70. </description>
  71. </method>
  72. </methods>
  73. <members>
  74. <member name="index" type="int" setter="set_index" getter="get_index">
  75. Drag event index in the case of a multi-drag event.
  76. </member>
  77. <member name="position" type="Vector2" setter="set_position" getter="get_position">
  78. Drag position.
  79. </member>
  80. <member name="relative" type="Vector2" setter="set_relative" getter="get_relative">
  81. Drag position relative to its start position.
  82. </member>
  83. <member name="speed" type="Vector2" setter="set_speed" getter="get_speed">
  84. Drag speed.
  85. </member>
  86. </members>
  87. <constants>
  88. </constants>
  89. </class>