Skip to content

Commit

Permalink
Merge pull request #10026 from Rooni/patch-2
Browse files Browse the repository at this point in the history
Fix indentation on mouse_and_input_coordinates.rst
  • Loading branch information
skyace65 authored Oct 2, 2024
2 parents c1ddab8 + 2bc63a0 commit 4a5dc31
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 4a5dc31

Please sign in to comment.