[Add] Made ESC quit from main menu.

This commit is contained in:
Tamir Atias 2012-02-03 00:48:56 +02:00
parent f7bc3fbae5
commit 620c55736b

View File

@ -127,6 +127,8 @@ mainMenuNavVal_t MainMenu::Run(void) {
case 3: return mainMenuExitGame; case 3: return mainMenuExitGame;
} }
} }
} else if(event.key.keysym.sym == SDLK_ESCAPE) {
return mainMenuExitGame;
} }
} }
else if(event.type == SDL_MOUSEBUTTONUP) { else if(event.type == SDL_MOUSEBUTTONUP) {