Game Development Community

Torque window in background or loosing focus

by Eyal Erez · in Torque Game Engine · 06/09/2008 (12:17 pm) · 1 replies

Is there any callback of other method that tells you when torque window has gone out of focus or minimized.
I'd like to pause the game when using alt-tab or minimizing torque window (window key + D). this will help you to play at work and quickly pause the game as soon as the boss comes into your office :)
Thanks,
E

#1
06/09/2008 (12:45 pm)
Offcourse, right after I post the blog I find the answer.
I was digging through the winWindow.cc and found a console callback to onWindowFocusChange . how convinient.