How to detect that window is not active?

BlitzMax Forums/BlitzMax Beginners Area/How to detect that window is not active?

anawiki(Posted 2006) [#1]
I would like to turn off music and pause my game whenever player makes my game out of focus (switches to another application). How can I check if my application window is active or not?

best
Roman


Dreamora(Posted 2006) [#2]
AppSuspended() gives the needed information.

Or doing it fully event based and capture the events for suspending and reactivating.