mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
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.
This commit is contained in:
parent
afd16ebc73
commit
8c9c3d3751
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue