Application in front?

BlitzMax Forums/BlitzMax Beginners Area/Application in front?

ima747(Posted 2007) [#1]
Is there a simple way to see if my app is the current front (i.e. should handle user input, and be allowed to reposition the mouse) app, or not? On windows if something pops up, or you hit the windows key to open the start menu etc. and my app goes into the background it remains in control of the mouse, re-centering it every frame, this is obivously not so good... but I can't figure out a way to tell when it looses focus.


Dreamora(Posted 2007) [#2]
check for the EVENT_APPSUSPEND
or use the app suspended function


ima747(Posted 2007) [#3]
AppSuspended() perfect!