Ejemplo n.º 1
0
        public override bool HandleInput(KeyEvent KeyEvent)
        {
            base.HandleInput(KeyEvent);
            if (KeyEvent.KeyPressed && !Char.IsControl(KeyEvent.Unicode))
            {
            }
            else
            {
                switch (KeyEvent.Key)
                {
                case Keys.Escape:
                case Keys.Back:
                    CGraphics.HidePopup(EPopupScreens.PopupPlayerControl);
                    return(false);

                case Keys.Enter:
                    if (Buttons[htButtons(ButtonNext)].Selected)
                    {
                        CBackgroundMusic.Next();
                    }
                    if (Buttons[htButtons(ButtonPrevious)].Selected)
                    {
                        CBackgroundMusic.Previous();
                    }
                    if (Buttons[htButtons(ButtonPlay)].Selected)
                    {
                        CBackgroundMusic.Play();
                    }
                    if (Buttons[htButtons(ButtonPause)].Selected)
                    {
                        CBackgroundMusic.Pause();
                    }
                    if (Buttons[htButtons(ButtonRepeat)].Selected)
                    {
                        CBackgroundMusic.RepeatSong = !CBackgroundMusic.RepeatSong;
                    }
                    if (Buttons[htButtons(ButtonShowVideo)].Selected)
                    {
                        VideoPreview = !VideoPreview;
                    }
                    if (Buttons[htButtons(ButtonSing)].Selected)
                    {
                        StartSong(CBackgroundMusic.SongID, CBackgroundMusic.Duet);
                    }
                    if (Buttons[htButtons(ButtonToBackgroundVideo)].Selected)
                    {
                        VideoBackground = !VideoBackground;
                    }
                    break;
                }
            }

            return(true);
        }
Ejemplo n.º 2
0
 public override bool HandleMouse(MouseEvent MouseEvent)
 {
     base.HandleMouse(MouseEvent);
     if (MouseEvent.LB && IsMouseOver(MouseEvent))
     {
         if (Buttons[htButtons(ButtonNext)].Selected)
         {
             CBackgroundMusic.Next();
         }
         if (Buttons[htButtons(ButtonPrevious)].Selected)
         {
             CBackgroundMusic.Previous();
         }
         if (Buttons[htButtons(ButtonPlay)].Selected)
         {
             CBackgroundMusic.Play();
         }
         if (Buttons[htButtons(ButtonPause)].Selected)
         {
             CBackgroundMusic.Pause();
         }
         if (Buttons[htButtons(ButtonRepeat)].Selected)
         {
             CBackgroundMusic.RepeatSong = !CBackgroundMusic.RepeatSong;
         }
         if (Buttons[htButtons(ButtonShowVideo)].Selected)
         {
             VideoPreview = !VideoPreview;
         }
         if (Buttons[htButtons(ButtonSing)].Selected)
         {
             StartSong(CBackgroundMusic.SongID, CBackgroundMusic.Duet);
         }
         if (Buttons[htButtons(ButtonToBackgroundVideo)].Selected)
         {
             VideoBackground = !VideoBackground;
         }
     }
     else if (MouseEvent.LB)
     {
         //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl);
         return(false);
     }
     else if (MouseEvent.RB)
     {
         //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl);
         return(false);
     }
     return(true);
 }
Ejemplo n.º 3
0
 public override bool HandleMouse(SMouseEvent mouseEvent)
 {
     base.HandleMouse(mouseEvent);
     if (mouseEvent.LB && _IsMouseOverCurSelection(mouseEvent))
     {
         if (_Buttons[_ButtonNext].Selected)
         {
             CBackgroundMusic.Next();
         }
         if (_Buttons[_ButtonPrevious].Selected)
         {
             CBackgroundMusic.Previous();
         }
         if (_Buttons[_ButtonPlay].Selected)
         {
             CBackgroundMusic.Play();
         }
         if (_Buttons[_ButtonPause].Selected)
         {
             CBackgroundMusic.Pause();
         }
         if (_Buttons[_ButtonRepeat].Selected)
         {
             CBackgroundMusic.RepeatSong = !CBackgroundMusic.RepeatSong;
         }
         if (_Buttons[_ButtonShowVideo].Selected)
         {
             _VideoPreview = !_VideoPreview;
         }
         if (_Buttons[_ButtonSing].Selected)
         {
             _StartSong(CBackgroundMusic.SongID);
         }
         if (_Buttons[_ButtonToBackgroundVideo].Selected)
         {
             _VideoBackground = !_VideoBackground;
         }
     }
     else if (mouseEvent.LB)
     {
         //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl);
         return(false);
     }
     else if (mouseEvent.RB)
     {
         //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl);
         return(false);
     }
     return(true);
 }