IsScreenActive()
Syntax
Result = IsScreenActive()Description
Games and full screen applications using PureBasic functions 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 function 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 function must be called after FlipBuffers(), as the events are handled inside FlipBuffers().
Supported OS
All