Added note for the captured mouse mode scenario.

See https://github.com/godotengine/godot/issues/24363#issuecomment-450574818
This commit is contained in:
Asheraryam
2019-02-06 09:19:51 +02:00
committed by Kotob (Groovy Antoid)
parent a30183a4c4
commit d3e485f006

View File

@@ -62,3 +62,5 @@ Alternatively, it's possible to ask the viewport for the mouse position:
.. code-tab:: csharp
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`` to process mouse movement and position changes.