mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 08:20:30 +02:00
Fix the back button resuming the game on the pause screen
This commit is contained in:
1 parent
96a7d9f6c6
commit
2b78509986
1 file changed
+4
-2
+4
-2
@@ -352,7 +352,9 @@ GamePauseScreen::~GamePauseScreen() {
|
||||
}
|
||||
|
||||
bool GamePauseScreen::key(const KeyInput &key) {
|
||||
if (!UIScreen::key(key) && (key.flags & KeyInputFlags::DOWN)) {
|
||||
bool handled = UIDialogScreen::key(key);
|
||||
|
||||
if (!handled && (key.flags & KeyInputFlags::DOWN)) {
|
||||
// Special case to be able to unpause with a bound pause key.
|
||||
// Normally we can't bind keys used in the UI.
|
||||
InputMapping mapping(key.deviceId, key.keyCode);
|
||||
@@ -366,7 +368,7 @@ bool GamePauseScreen::key(const KeyInput &key) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
return handled;
|
||||
}
|
||||
|
||||
void GamePauseScreen::CreateSavestateControls(UI::LinearLayout *leftColumnItems) {
|
||||
|
||||
Reference in new issue
Block a user