From 175281a328d1d604ab5010d3008785eeeb46e40d Mon Sep 17 00:00:00 2001 From: CPritch Date: Fri, 29 Sep 2023 13:44:59 +0100 Subject: [PATCH] Update mouse_and_input_coordinates.rst Fix invalid property for InputEventMouseMotion. Should be 'velocity' instead of 'speed' --- tutorials/inputs/mouse_and_input_coordinates.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/inputs/mouse_and_input_coordinates.rst b/tutorials/inputs/mouse_and_input_coordinates.rst index c9f42c78d0c..459068e7309 100644 --- a/tutorials/inputs/mouse_and_input_coordinates.rst +++ b/tutorials/inputs/mouse_and_input_coordinates.rst @@ -63,4 +63,4 @@ Alternatively, it's possible to ask the viewport for the mouse position: GetViewport().GetMousePosition(); -.. note:: When the mouse mode is set to ``Input.MOUSE_MODE_CAPTURED``, the ``event.position`` value from ``InputEventMouseMotion`` is the center of the screen. Use ``event.relative`` instead of ``event.position`` and ``event.speed`` to process mouse movement and position changes. +.. note:: When the mouse mode is set to ``Input.MOUSE_MODE_CAPTURED``, the ``event.position`` value from ``InputEventMouseMotion`` is the center of the screen. Use ``event.relative`` instead of ``event.position`` and ``event.velocity`` to process mouse movement and position changes.