I wanna use the Escape key for something else.
Also it is just pretty bad if the window closes without warning when pressing escape.
But it seems to be closing by default when pressing esc.
does anyone know how to prevent that?
I am making a Windows desktop app with visual studio if this helps.
If it’s just the default code that comes with Update, you can remove the part that checks if escape is pressed and closes the game. That’s not expected to be normal behaviour, it’s just a startup template.
You should be able to remove it, or change it to another key if you want to keep it still for testing purposes.
Omg you are right, it was in the Main Update function all along…
It was too obvious for me to notice, i searched through my entire code and didn’t find anything.
Thanks for the quick help.