IsScreenActive()
Syntax
Result = IsScreenActive()Description
Games and full screen applications using PureBasic commands run under a multitasking environment (AmigaOS, Windows or Linux). This means that the user can switch back from full screen to the normal desktop. This change can be detected with this command and appriopriate actions should be taken, such as ReleaseMouse(), pause the game, stop the sounds etc. If the 'Result' is 0, then the screen is no longer active, otherwise the screen is active. This command must be called after FlipBuffers(), as the events are handled inside FlipBuffers().
Supported OS
Windows, Linux, MacOS X