N keyboard to skip to next song
This commit is contained in:
@ -1033,6 +1033,15 @@ int main(int, char **)
|
||||
musicEnabled = !musicEnabled;
|
||||
Settings::instance().setMusicEnabled(musicEnabled);
|
||||
}
|
||||
if (e.key.scancode == SDL_SCANCODE_N)
|
||||
{
|
||||
Audio::instance().skipToNextTrack();
|
||||
if (!musicStarted && Audio::instance().getLoadedTrackCount() > 0) {
|
||||
musicStarted = true;
|
||||
musicEnabled = true;
|
||||
Settings::instance().setMusicEnabled(true);
|
||||
}
|
||||
}
|
||||
if (e.key.scancode == SDL_SCANCODE_S)
|
||||
{
|
||||
// Toggle sound effects
|
||||
|
||||
Reference in New Issue
Block a user