I'm not sure if this question has been asked before but a search for anything regarding "window" or "pause" led to nothing.
My problem is that my game still kind of registers controls when I tab out or have it running in the background, along with that, the game still runs completely while in the background shown by the fade-in and fade-out I implemented on a sprite object still functioning while the window isn't focused.
What I would like to know is if there's any way to make the game process pause itself while the window isn't focused? I tried fiddling around with the Window object but nothing seems to work and I can't find any settings that help within the Application Properties.
Any help would be much appreciated, thanks.