Made some variable names for the navigation sounds more consistent

This commit is contained in:
Leon Styhre 2020-05-15 18:41:53 +02:00
parent eec27c0258
commit 89794a34cf
4 changed files with 13 additions and 13 deletions

View file

@ -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;
}

View file

@ -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());
}

View file

@ -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:

View file

@ -45,8 +45,8 @@ private:
enum NavigationSoundsID
{
SYSTEMBROWSE,
QUICKSYSSELECT,
SYSTEMBROWSESOUND,
QUICKSYSSELECTSOUND,
SELECTSOUND,
BACKSOUND,
SCROLLSOUND,