Added the escape hotkey, refined BoundingBox a bit

LobbyMenu also searches for a server as soon as you enter, so you don't
have to press an extra button, a good feature.
This commit is contained in:
Kayne Ruse
2014-08-13 08:08:16 +10:00
parent 74f809a801
commit 1776583e01
11 changed files with 72 additions and 418 deletions
+5 -1
View File
@@ -124,7 +124,11 @@ void CleanUp::MouseButtonUp(SDL_MouseButtonEvent const& button) {
}
void CleanUp::KeyDown(SDL_KeyboardEvent const& key) {
//
switch(key.keysym.sym) {
case SDLK_ESCAPE:
SetNextScene(SceneList::MAINMENU);
break;
}
}
void CleanUp::KeyUp(SDL_KeyboardEvent const& key) {