mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (543750a)
This commit is contained in:
@@ -12,14 +12,14 @@ InputEventMouseMotion
|
||||
|
||||
**Inherits:** :ref:`InputEventMouse<class_InputEventMouse>` **<** :ref:`InputEventWithModifiers<class_InputEventWithModifiers>` **<** :ref:`InputEventFromWindow<class_InputEventFromWindow>` **<** :ref:`InputEvent<class_InputEvent>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
Input event type for mouse motion events.
|
||||
Represents a mouse or a pen movement.
|
||||
|
||||
.. rst-class:: classref-introduction-group
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
Contains mouse and pen motion information. Supports relative, absolute positions and velocity. See :ref:`Node._input<class_Node_method__input>`.
|
||||
Stores information about a mouse or a pen motion. This includes relative position, absolute position, and velocity. See :ref:`Node._input<class_Node_method__input>`.
|
||||
|
||||
\ **Note:** By default, this event is only emitted once per frame rendered at most. If you need more precise input reporting, set :ref:`Input.use_accumulated_input<class_Input_property_use_accumulated_input>` to ``false`` to make events emitted as often as possible. If you use InputEventMouseMotion to draw lines, consider implementing `Bresenham's line algorithm <https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm>`__ as well to avoid visible gaps in lines if the user is moving the mouse quickly.
|
||||
|
||||
@@ -28,6 +28,8 @@ Contains mouse and pen motion information. Supports relative, absolute positions
|
||||
Tutorials
|
||||
---------
|
||||
|
||||
- :doc:`Using InputEvent <../tutorials/inputs/inputevent>`
|
||||
|
||||
- :doc:`Mouse and input coordinates <../tutorials/inputs/mouse_and_input_coordinates>`
|
||||
|
||||
- `3D Voxel Demo <https://godotengine.org/asset-library/asset/676>`__
|
||||
|
||||
Reference in New Issue
Block a user