|
@@ -44,9 +44,13 @@ for example:
|
|
|
{
|
|
|
// Mouse in viewport coordinates.
|
|
|
if (@event is InputEventMouseButton eventMouseButton)
|
|
|
+ {
|
|
|
GD.Print("Mouse Click/Unclick at: ", eventMouseButton.Position);
|
|
|
+ }
|
|
|
else if (@event is InputEventMouseMotion eventMouseMotion)
|
|
|
+ {
|
|
|
GD.Print("Mouse Motion at: ", eventMouseMotion.Position);
|
|
|
+ }
|
|
|
|
|
|
// Print the size of the viewport.
|
|
|
GD.Print("Viewport Resolution is: ", GetViewport().GetVisibleRect().Size);
|