소스 검색

Fix indentation on mouse_and_input_coordinates.rst

There was a space missing, causing inconsistent indentation and making the code not copy pastable.
Rooni 10 달 전
부모
커밋
2bc63a080c
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      tutorials/inputs/mouse_and_input_coordinates.rst

+ 8 - 8
tutorials/inputs/mouse_and_input_coordinates.rst

@@ -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