We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have 2 questions. ! <- will determine their priority................................................................................................................ !!! How do you make it so you can't close a game with the big X button. I want it to close if you clicked into a menu. I know the exit() thing and I need that so I can save the game with a print writer. That will be part of the other question, but how do I make it so you can't close a game with the [X] button on the top right of the window?...................................................................................................................................................................................
!! How do I detect if the window was closed? Like if you pressed the big [X] button.
Answers
https://forum.Processing.org/two/discussions/tagged/controlwindow