Is there a way to know when the game is been played or if it on the background?

Just like unreal4 editor lowering the performances when it is in the background ( while using other application on windows ).
I didn’t find anything about that and it would be nice to have events like:
OnGameBackgrouned and OnGameResumedToFront or something like that.

I really need it right now, There are some functionalities in my game that are influenced by the Alt key press and release. And when the user is using the Alt key for switching windows, the Alt key will receive the press event but not the released event, and the pressed state will stay on when the user is getting back to the game and it won’t stop until the user press and release Alt again.
Is there any solution to this problem?

Hi Sahkan,

Thank you for your request. I have entered a feature request, UE-21289, to be considered by the development staff.

Thanks! Looking forword to it.

isn’t there an old school way of detecting if a window (or in this case - a game) has ‘Focus’ ?

shouldn’t be hard to implement, in fact I personally figured this was already in the engine.