Merge pull request #2090 from corrigentia/patch-89

Tweak mouse_and_input_coordinates
This commit is contained in:
Rémi Verschelde
2019-01-08 13:07:03 +01:00
committed by GitHub

View File

@@ -14,7 +14,7 @@ Hardware display coordinates
----------------------------
Using hardware coordinates makes sense in the case of writing complex
UIs meant to run on PC, such as editors, MMOs, tools, etc. Yet, it does
UIs meant to run on PC, such as editors, MMOs, tools, etc. However, it does
not make as much sense outside of that scope.
Viewport display coordinates
@@ -52,7 +52,7 @@ for example:
GD.Print("Viewport Resolution is: ", GetViewPortRect().Size);
}
Alternatively it's possible to ask the viewport for the mouse position:
Alternatively, it's possible to ask the viewport for the mouse position:
.. tabs::
.. code-tab:: gdscript GDScript
@@ -61,4 +61,4 @@ Alternatively it's possible to ask the viewport for the mouse position:
.. code-tab:: csharp
GetViewport().GetMousePosition();
GetViewport().GetMousePosition();