mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
PauseScreen: Allow escape/cancel buttons to dismiss the menu and go back in-game.
This commit is contained in:
1 parent
4ccf58c168
commit
199bd959ca
2 files changed
+10
No files matched your search
@@ -621,6 +621,14 @@ 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 GamePauseScreen::DrawBackground(UIContext &dc) {
|
||||
GameInfo *ginfo = g_gameInfoCache.GetInfo(gamePath_, true);
|
||||
dc.Flush();
|
||||
|
||||
Reference in new issue
Block a user