|full||Whether to set the screen to fullscreen (true) or not (false).|
With this function you can set the game window to be full screen
(true) or not (false). Please note that for the
Mac OSX target, you must have the "Start In
Fullscreen" option selected in the
Global Game Settings, otherwise this function will fail.
The above code checks for a mouse button press and then sets the window to fullscreen if it is not already, or sets it to windowed if it is already.