class_inputeventmousemotion.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the InputEventMouseMotion.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_InputEventMouseMotion:
  6. InputEventMouseMotion
  7. =====================
  8. **Inherits:** :ref:`InputEventMouse<class_InputEventMouse>` **<** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Input event type for mouse motion events.
  13. Properties
  14. ----------
  15. +-------------------------------+----------------------------------------------------------------+-----------------+
  16. | :ref:`Vector2<class_Vector2>` | :ref:`relative<class_InputEventMouseMotion_property_relative>` | Vector2( 0, 0 ) |
  17. +-------------------------------+----------------------------------------------------------------+-----------------+
  18. | :ref:`Vector2<class_Vector2>` | :ref:`speed<class_InputEventMouseMotion_property_speed>` | Vector2( 0, 0 ) |
  19. +-------------------------------+----------------------------------------------------------------+-----------------+
  20. Description
  21. -----------
  22. Contains mouse motion information. Supports relative, absolute positions and speed. See :ref:`Node._input<class_Node_method__input>`.
  23. Tutorials
  24. ---------
  25. - :doc:`../tutorials/inputs/mouse_and_input_coordinates`
  26. Property Descriptions
  27. ---------------------
  28. .. _class_InputEventMouseMotion_property_relative:
  29. - :ref:`Vector2<class_Vector2>` **relative**
  30. +-----------+---------------------+
  31. | *Default* | Vector2( 0, 0 ) |
  32. +-----------+---------------------+
  33. | *Setter* | set_relative(value) |
  34. +-----------+---------------------+
  35. | *Getter* | get_relative() |
  36. +-----------+---------------------+
  37. The mouse position relative to the previous position (position at the last frame).
  38. .. _class_InputEventMouseMotion_property_speed:
  39. - :ref:`Vector2<class_Vector2>` **speed**
  40. +-----------+------------------+
  41. | *Default* | Vector2( 0, 0 ) |
  42. +-----------+------------------+
  43. | *Setter* | set_speed(value) |
  44. +-----------+------------------+
  45. | *Getter* | get_speed() |
  46. +-----------+------------------+
  47. The mouse speed in pixels per second.