I use window_focus to test it. save the focus state in each frame in a variable, if it changes in next frame switch on/off shadowmapping.


Free world editor for 3D Gamestudio: MapBuilder Editor