diff --git a/tutorials/inputs/mouse_and_input_coordinates.rst b/tutorials/inputs/mouse_and_input_coordinates.rst index 9eb34e84d..2d02d0943 100644 --- a/tutorials/inputs/mouse_and_input_coordinates.rst +++ b/tutorials/inputs/mouse_and_input_coordinates.rst @@ -49,7 +49,7 @@ for example: GD.Print("Mouse Motion at: ", eventMouseMotion.Position); // Print the size of the viewport - GD.Print("Viewport Resolution is: ", GetViewPortRect().Size); + GD.Print("Viewport Resolution is: ", GetViewportRect().Size); } Alternatively, it's possible to ask the viewport for the mouse position: