We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9fbdd commit f4b57a9Copy full SHA for f4b57a9
tutorials/inputs/mouse_and_input_coordinates.rst
@@ -44,9 +44,13 @@ for example:
44
{
45
// Mouse in viewport coordinates.
46
if (@event is InputEventMouseButton eventMouseButton)
47
+ {
48
GD.Print("Mouse Click/Unclick at: ", eventMouseButton.Position);
49
+ }
50
else if (@event is InputEventMouseMotion eventMouseMotion)
51
52
GD.Print("Mouse Motion at: ", eventMouseMotion.Position);
53
54
55
// Print the size of the viewport.
56
GD.Print("Viewport Resolution is: ", GetViewport().GetVisibleRect().Size);
0 commit comments