IsScreenActive()

Syntax

Result = IsScreenActive()
Description
Games and full screen applications using PureBasic functions run under a multitasking environment. This means that the user can switch back from full screen to the normal desktop. This change can be detected with this function and appropriate actions should be taken, such as ReleaseMouse(), pause the game, stop the sounds etc. This function must be called after FlipBuffers(), as the events are handled inside FlipBuffers().

Parameters

None.

Return value

Nonzero if the screen is still active, zero otherwise.

See Also

OpenScreen(), OpenWindowedScreen(), ReleaseMouse(), FlipBuffers()

Supported OS

All

<- FlipBuffers() - Screen Index - NextScreenMode() ->