mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Move menu open code to ViewController so you can open it in the system
select
This commit is contained in:
parent
bce46cb925
commit
4b6f8d9007
|
@ -23,12 +23,6 @@ bool GameListView::input(InputConfig* config, Input input)
|
|||
}));
|
||||
mTheme->playSound("menuOpenSound");
|
||||
return true;
|
||||
}else if(config->isMappedTo("menu", input) && input.value != 0)
|
||||
{
|
||||
// open menu
|
||||
mWindow->pushGui(new GuiMenu(mWindow));
|
||||
mTheme->playSound("menuOpenSound");
|
||||
return true;
|
||||
}else if(config->isMappedTo("select", input) && input.value != 0)
|
||||
{
|
||||
// open fast select
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "BasicGameListView.h"
|
||||
#include "DetailedGameListView.h"
|
||||
#include "GridGameListView.h"
|
||||
#include "../components/GuiMenu.h"
|
||||
#include "../animations/LaunchAnimation.h"
|
||||
#include "../animations/MoveCameraAnimation.h"
|
||||
#include "../animations/LambdaAnimation.h"
|
||||
|
@ -176,6 +177,15 @@ bool ViewController::input(InputConfig* config, Input input)
|
|||
if(mLockInput)
|
||||
return true;
|
||||
|
||||
// open menu
|
||||
if(config->isMappedTo("menu", input) && input.value != 0)
|
||||
{
|
||||
// open menu
|
||||
mWindow->pushGui(new GuiMenu(mWindow));
|
||||
ThemeData().playSound("menuOpenSound");
|
||||
return true;
|
||||
}
|
||||
|
||||
if(mCurrentView)
|
||||
return mCurrentView->input(config, input);
|
||||
|
||||
|
|
Loading…
Reference in a new issue