Skip to content

Commit

Permalink
Fix indentation on mouse_and_input_coordinates.rst
Browse files Browse the repository at this point in the history
There was a space missing, causing inconsistent indentation and making the code not copy pastable.
  • Loading branch information
Rooni authored Oct 1, 2024
1 parent 5d7703e commit 2bc63a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tutorials/inputs/mouse_and_input_coordinates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

# Print the size of the viewport.
print("Viewport Resolution is: ", get_viewport().get_visible_rect().size)
# 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)

.. code-tab:: csharp

Expand Down

0 comments on commit 2bc63a0

Please sign in to comment.