I can't seem to find a way to stop a Processing app from closing on clicking the back button - I'm trying to implement a page/menu system and the back button exiting no matter what is.. annoying.
In an older Processing version, there was onBackPressed, but in this commit, it was commented out. I've tried overriding onDestroy, keyPressed, keyReleased, stop on all the renderers with no success.
Is there a way to do this?