mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Made some variable names for the navigation sounds more consistent
This commit is contained in:
parent
eec27c0258
commit
89794a34cf
|
@ -155,13 +155,13 @@ bool SystemView::input(InputConfig* config, Input input)
|
|||
case VERTICAL_WHEEL:
|
||||
if (config->isMappedLike("up", input))
|
||||
{
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSE);
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
listInput(-1);
|
||||
return true;
|
||||
}
|
||||
if (config->isMappedLike("down", input))
|
||||
{
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSE);
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
listInput(1);
|
||||
return true;
|
||||
}
|
||||
|
@ -171,13 +171,13 @@ bool SystemView::input(InputConfig* config, Input input)
|
|||
default:
|
||||
if (config->isMappedLike("left", input))
|
||||
{
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSE);
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
listInput(-1);
|
||||
return true;
|
||||
}
|
||||
if (config->isMappedLike("right", input))
|
||||
{
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSE);
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
listInput(1);
|
||||
return true;
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ bool SystemView::input(InputConfig* config, Input input)
|
|||
{
|
||||
// get random system
|
||||
// go to system
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSE);
|
||||
navigationsounds.playThemeNavigationSound(SYSTEMBROWSESOUND);
|
||||
setCursor(SystemData::getRandomSystem());
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ void ViewController::goToNextGameList()
|
|||
assert(mState.viewing == GAME_LIST);
|
||||
SystemData* system = getState().getSystem();
|
||||
assert(system);
|
||||
navigationsounds.playThemeNavigationSound(QUICKSYSSELECT);
|
||||
navigationsounds.playThemeNavigationSound(QUICKSYSSELECTSOUND);
|
||||
goToGameList(system->getNext());
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,7 @@ void ViewController::goToPrevGameList()
|
|||
assert(mState.viewing == GAME_LIST);
|
||||
SystemData* system = getState().getSystem();
|
||||
assert(system);
|
||||
navigationsounds.playThemeNavigationSound(QUICKSYSSELECT);
|
||||
navigationsounds.playThemeNavigationSound(QUICKSYSSELECTSOUND);
|
||||
goToGameList(system->getPrev());
|
||||
}
|
||||
|
||||
|
|
|
@ -50,10 +50,10 @@ void NavigationSounds::playThemeNavigationSound(NavigationSoundsID soundID)
|
|||
|
||||
switch(soundID)
|
||||
{
|
||||
case SYSTEMBROWSE:
|
||||
case SYSTEMBROWSESOUND:
|
||||
navigationsounds.systembrowseSound->play();
|
||||
break;
|
||||
case QUICKSYSSELECT:
|
||||
case QUICKSYSSELECTSOUND:
|
||||
navigationsounds.quicksysselectSound->play();
|
||||
break;
|
||||
case SELECTSOUND:
|
||||
|
@ -77,10 +77,10 @@ bool NavigationSounds::isPlayingThemeNavigationSound(NavigationSoundsID soundID)
|
|||
{
|
||||
switch(soundID)
|
||||
{
|
||||
case SYSTEMBROWSE:
|
||||
case SYSTEMBROWSESOUND:
|
||||
return navigationsounds.systembrowseSound->isPlaying();
|
||||
break;
|
||||
case QUICKSYSSELECT:
|
||||
case QUICKSYSSELECTSOUND:
|
||||
return navigationsounds.quicksysselectSound->isPlaying();
|
||||
break;
|
||||
case SELECTSOUND:
|
||||
|
|
|
@ -45,8 +45,8 @@ private:
|
|||
|
||||
enum NavigationSoundsID
|
||||
{
|
||||
SYSTEMBROWSE,
|
||||
QUICKSYSSELECT,
|
||||
SYSTEMBROWSESOUND,
|
||||
QUICKSYSSELECTSOUND,
|
||||
SELECTSOUND,
|
||||
BACKSOUND,
|
||||
SCROLLSOUND,
|
||||
|
|
Loading…
Reference in a new issue