mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge pull request #2090 from corrigentia/patch-89
Tweak mouse_and_input_coordinates
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user