I know that I can check time passed since last render, to catch moment when user got focus back after losing it during some time.(I've done this in Master of Defense)
But I need to disable music/sounds, freeze timers etc, so I need to know when user lost focus, not when he is recieved it back.
I hope you understood what I'm saying :)
But I need to disable music/sounds, freeze timers etc, so I need to know when user lost focus, not when he is recieved it back.
I hope you understood what I'm saying :)