/// <summary> /// Jukebox controls /// </summary> private void HandleJukeboxInput() { if (DialogManager.Dialogs.Count != 0) { return; } if (KeyboardManager.IsUniqueKeyPress(Keys.Z)) { PreviousButton.FireButtonClickEvent(); } if (KeyboardManager.IsUniqueKeyPress(Keys.X)) { RestartButton.FireButtonClickEvent(); NotificationManager.Show(NotificationLevel.Info, "Restarted track"); } if (KeyboardManager.IsUniqueKeyPress(Keys.C)) { var isPaused = AudioEngine.Track.IsPaused; PauseResumeButton.FireButtonClickEvent(); NotificationManager.Show(NotificationLevel.Info, isPaused ? "Resumed track" : "Paused track"); } if (KeyboardManager.IsUniqueKeyPress(Keys.V)) { NextButton.FireButtonClickEvent(); } }