Skip to content

Commit f4b57a9

Browse files
committed
[2025-07-07] Add curly brackets to mouse and input coordinates C# code
1 parent 2d9fbdd commit f4b57a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tutorials/inputs/mouse_and_input_coordinates.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,13 @@ for example:
4444
{
4545
// Mouse in viewport coordinates.
4646
if (@event is InputEventMouseButton eventMouseButton)
47+
{
4748
GD.Print("Mouse Click/Unclick at: ", eventMouseButton.Position);
49+
}
4850
else if (@event is InputEventMouseMotion eventMouseMotion)
51+
{
4952
GD.Print("Mouse Motion at: ", eventMouseMotion.Position);
53+
}
5054

5155
// Print the size of the viewport.
5256
GD.Print("Viewport Resolution is: ", GetViewport().GetVisibleRect().Size);

0 commit comments

Comments
 (0)