InputEventMouseMotion.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="InputEventMouseMotion" inherits="InputEventMouse" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Input event type for mouse motion events.
  5. </brief_description>
  6. <description>
  7. Contains mouse motion informations. Supports relative, absolute positions and speed. See [method Node._input].
  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_relative" qualifiers="const">
  16. <return type="Vector2">
  17. </return>
  18. <description>
  19. </description>
  20. </method>
  21. <method name="get_speed" qualifiers="const">
  22. <return type="Vector2">
  23. </return>
  24. <description>
  25. </description>
  26. </method>
  27. <method name="set_relative">
  28. <return type="void">
  29. </return>
  30. <argument index="0" name="relative" type="Vector2">
  31. </argument>
  32. <description>
  33. </description>
  34. </method>
  35. <method name="set_speed">
  36. <return type="void">
  37. </return>
  38. <argument index="0" name="speed" type="Vector2">
  39. </argument>
  40. <description>
  41. </description>
  42. </method>
  43. </methods>
  44. <members>
  45. <member name="relative" type="Vector2" setter="set_relative" getter="get_relative">
  46. Mouse position relative to the previous position (position at the last frame).
  47. </member>
  48. <member name="speed" type="Vector2" setter="set_speed" getter="get_speed">
  49. Mouse speed.
  50. </member>
  51. </members>
  52. <constants>
  53. </constants>
  54. </class>