From 8c9c3d37512cf085fa7418c236d8b3b292f3492a Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 20 Jun 2020 17:34:45 -0700 Subject: [PATCH] Add being able to press Esc to go to quit menu from teleporter menu It's always been a bit annoying that if you're in the teleporter menu, you can't press Escape to go to the "Do you want to quit?" menu. --- desktop_version/src/Input.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index 64709a77..8b876fef 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -2093,6 +2093,14 @@ void teleporterinput() //In the menu system, all keypresses are single taps rather than holds. Therefore this test has to be done for all presses if (!game.press_action && !game.press_left && !game.press_right) game.jumpheld = false; if (!game.press_map) game.mapheld = false; + + if (key.isDown(27)) + { + // Go to "Do you want to quit?" screen + game.mapheld = true; + game.menupage = 10; + game.gamestate = MAPMODE; + } } else {