GLBasic User Manual

Main sections

GLB_ON_PAUSE

This subroutine is called when, if the case of desktop machines, a window loses focus (through task-switching, minimising a window or activating another window), or in the case of iPod/iPhone/iPad, the user starts (or resumes another program).

SUB GLB_ON_PAUSE
// No graphics activity should be done here
// It is best to set a flag which your main program will detect and which can then pause your program
ENDSUB


Currently only Windows, iPod/iPhone/iPad (with iOS 4) support this subroutine.

See also...