Skip to content

Commit 42fcf5c

Browse files
authored
Merge pull request #11092 from andrwcnln/mouse-and-input-coordinates-fix
Add curly brackets to mouse and input coordinates C# code
2 parents de0c58c + f4b57a9 commit 42fcf5c

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)