Backgroundmusic can now be controlled by media keys
This commit is contained in:
1 parent
579588c434
commit
274ee2bffa
1 file changed
+12
@@ -928,6 +928,18 @@ namespace Vocaluxe.Menu
|
||||
CConfig.BackgroundMusicVolume = 0;
|
||||
CConfig.SaveConfig();
|
||||
}
|
||||
else if (KeyEvent.Key == Keys.MediaNextTrack)
|
||||
CBackgroundMusic.Next();
|
||||
else if (KeyEvent.Key == Keys.MediaPreviousTrack)
|
||||
CBackgroundMusic.Previous();
|
||||
else if (KeyEvent.Key == Keys.MediaPlayPause)
|
||||
{
|
||||
if (CBackgroundMusic.Playing)
|
||||
CBackgroundMusic.Pause();
|
||||
else
|
||||
CBackgroundMusic.Play();
|
||||
}
|
||||
|
||||
CBackgroundMusic.ApplyVolume();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user