mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
If it's a TV and VIRTKEY_PAUSE is not mapped to a pad control, pause on app switch.
This commit is contained in:
1 parent
81b4c3b376
commit
aa3daca293
3 files changed
+20
-3
No files matched your search
+7
-3
@@ -506,10 +506,14 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
|
||||
}
|
||||
#endif
|
||||
} else if (!strcmp(message, "app_resumed") && screenManager()->topScreen() == this) {
|
||||
// If there's no back button mapped, use this as the way to get into the menu.
|
||||
if (System_GetPropertyInt(SYSPROP_DEVICE_TYPE) == DEVICE_TYPE_TV) {
|
||||
if (!KeyMap::IsKeyMapped(DEVICE_ID_PAD_0, VIRTKEY_PAUSE) || !KeyMap::IsKeyMapped(DEVICE_ID_PAD_1, VIRTKEY_PAUSE)) {
|
||||
// If it's a TV (so no built-in back button), and there's no back button mapped to a pad,
|
||||
// use this as the fallback way to get into the menu.
|
||||
|
||||
// TODO: Check mappings.
|
||||
screenManager()->push(new GamePauseScreen(gamePath_));
|
||||
screenManager()->push(new GamePauseScreen(gamePath_));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user