Added N to play next song

This commit is contained in:
2025-12-10 18:40:46 +01:00
parent d1d0d891fa
commit d2fa5b2782
3 changed files with 30 additions and 0 deletions

View File

@ -352,6 +352,16 @@ bool ApplicationManager::initializeManagers() {
consume = true;
}
// N: Skip to next song in the playlist (or restart menu track)
if (!consume && sc == SDL_SCANCODE_N) {
Audio::instance().skipToNextTrack();
if (!m_musicStarted && Audio::instance().getLoadedTrackCount() > 0) {
m_musicStarted = true;
m_musicEnabled = true;
}
consume = true;
}
if (!consume && sc == SDL_SCANCODE_H) {
AppState currentState = m_stateManager ? m_stateManager->getState() : AppState::Loading;
if (currentState != AppState::Loading) {