Detect fullscreen mode

Is there a way to detect in code whether the program is running in fullscreen mode or windowed?

And how to switch between them?

Not built-in. You can use DefOS.

1 Like

You can check the project settings with sys.get_config(). See https://www.defold.com/ref/sys/#sys.get_config:key

2 Likes