mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Added button mapping and help prompt for the media viewer.
This commit is contained in:
parent
7851317621
commit
e07b9a7229
|
@ -312,6 +312,15 @@ std::vector<HelpPrompt> BasicGameListView::getHelpPrompts()
|
|||
prompts.push_back(HelpPrompt("up/down", "choose"));
|
||||
prompts.push_back(HelpPrompt("a", "launch"));
|
||||
prompts.push_back(HelpPrompt("b", "back"));
|
||||
|
||||
if (mRoot->getSystem()->isGameSystem() &&
|
||||
mRoot->getSystem()->getThemeFolder() != "custom-collections")
|
||||
prompts.push_back(HelpPrompt("x", "view media"));
|
||||
|
||||
if (mRoot->getSystem()->isGameSystem() && !mCursorStack.empty() &&
|
||||
mRoot->getSystem()->getThemeFolder() == "custom-collections")
|
||||
prompts.push_back(HelpPrompt("x", "view media"));
|
||||
|
||||
if (!UIModeController::getInstance()->isUIModeKid())
|
||||
prompts.push_back(HelpPrompt("select", "options"));
|
||||
if (mRoot->getSystem()->isGameSystem() && Settings::getInstance()->getBool("RandomAddButton"))
|
||||
|
|
|
@ -707,6 +707,15 @@ std::vector<HelpPrompt> GridGameListView::getHelpPrompts()
|
|||
prompts.push_back(HelpPrompt("up/down/left/right", "choose"));
|
||||
prompts.push_back(HelpPrompt("a", "launch"));
|
||||
prompts.push_back(HelpPrompt("b", "back"));
|
||||
|
||||
if (mRoot->getSystem()->isGameSystem() &&
|
||||
mRoot->getSystem()->getThemeFolder() != "custom-collections")
|
||||
prompts.push_back(HelpPrompt("x", "view media"));
|
||||
|
||||
if (mRoot->getSystem()->isGameSystem() && !mCursorStack.empty() &&
|
||||
mRoot->getSystem()->getThemeFolder() == "custom-collections")
|
||||
prompts.push_back(HelpPrompt("x", "view media"));
|
||||
|
||||
if (!UIModeController::getInstance()->isUIModeKid())
|
||||
prompts.push_back(HelpPrompt("select", "options"));
|
||||
if (mRoot->getSystem()->isGameSystem() &&
|
||||
|
|
|
@ -175,6 +175,17 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
|||
|
||||
return true;
|
||||
}
|
||||
else if (config->isMappedTo("x", input)) {
|
||||
if (getCursor()->getType() == PLACEHOLDER) {
|
||||
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
||||
return true;
|
||||
}
|
||||
else if (mRoot->getSystem()->isGameSystem()) {
|
||||
stopListScrolling();
|
||||
mWindow->startMediaViewer(getCursor());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (config->isMappedLike(getQuickSystemSelectRightButton(), input)) {
|
||||
if (Settings::getInstance()->getBool("QuickSystemSelect") &&
|
||||
SystemData::sSystemVector.size() > 1) {
|
||||
|
|
Loading…
Reference in a new issue