fixed keyboard volume control, added volume control by wiimote (+/-)

This commit is contained in:
Alexander Eckart committed 2012-12-23 18:18:33 +01:00
1 parent e116f4cfb3
commit 1a3b37419e
4 files changed
+88 -94

No files matched your search

+1 -21
View File
@@ -1091,27 +1091,7 @@ namespace Vocaluxe.Menu
if (KeyEvent.Key == Keys.Right)
NextElement();
}
if (_Base.BackgroundMusic.IsDisabled())
{
if (KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.Add || KeyEvent.Key == Keys.PageUp))
_Base.Config.SetBackgroundMusicVolume(_Base.Config.GetBackgroundMusicVolume() + 5);
else if (KeyEvent.ModSHIFT && (KeyEvent.Key == Keys.Subtract || KeyEvent.Key == Keys.PageDown))
_Base.Config.SetBackgroundMusicVolume(_Base.Config.GetBackgroundMusicVolume() - 5);
else if (KeyEvent.Key == Keys.MediaNextTrack)
_Base.BackgroundMusic.Next();
else if (KeyEvent.Key == Keys.MediaPreviousTrack)
_Base.BackgroundMusic.Previous();
else if (KeyEvent.Key == Keys.MediaPlayPause)
{
if (_Base.BackgroundMusic.IsPlaying())
_Base.BackgroundMusic.Pause();
else
_Base.BackgroundMusic.Play();
}
_Base.BackgroundMusic.ApplyVolume();
}
return true;
}