add "onFinish" to screens so that ESC (etc) works the same as the back

touch button.
This commit is contained in:
Henrik Rydgård committed 2013-10-25 13:19:08 +02:00
1 parent b896a29ec0
commit 4590e44954
12 files changed
+40 -49

No files matched your search

-8
View File
@@ -704,14 +704,6 @@ void GamePauseScreen::update(InputState &input) {
UIScreen::update(input);
}
void GamePauseScreen::key(const KeyInput &key) {
if ((key.flags & KEY_DOWN) && UI::IsEscapeKeyCode(key.keyCode)) {
screenManager()->finishDialog(this, DR_CANCEL);
} else {
UIScreen::key(key);
}
}
void DrawBackground(float alpha);
void GamePauseScreen::DrawBackground(UIContext &dc) {