mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Fix indentation on mouse_and_input_coordinates.rst
There was a space missing, causing inconsistent indentation and making the code not copy pastable.
This commit is contained in:
@@ -29,14 +29,14 @@ for example:
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
func _input(event):
|
||||
# Mouse in viewport coordinates.
|
||||
if event is InputEventMouseButton:
|
||||
print("Mouse Click/Unclick at: ", event.position)
|
||||
elif event is InputEventMouseMotion:
|
||||
print("Mouse Motion at: ", event.position)
|
||||
# Mouse in viewport coordinates.
|
||||
if event is InputEventMouseButton:
|
||||
print("Mouse Click/Unclick at: ", event.position)
|
||||
elif event is InputEventMouseMotion:
|
||||
print("Mouse Motion at: ", event.position)
|
||||
|
||||
# Print the size of the viewport.
|
||||
print("Viewport Resolution is: ", get_viewport().get_visible_rect().size)
|
||||
# Print the size of the viewport.
|
||||
print("Viewport Resolution is: ", get_viewport().get_visible_rect().size)
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user