Like when pressing (not clicking!!!) the windows |X| button on the game window. Is that possible? Or will I have to write custom pause function? :S I have a very complicated program, and now I want to add PAUSE button.
Like when pressing (not clicking!!!) the windows |X| button on the game window. Is
Share
In your game loop (before updating), just add a check for a “pause” state. If paused, don’t update. Should be pretty easy to implement.
-Justin