Пример #1
0
        public Boolean GameSound()
        {
            // Mouse.
            if (mouseScreenInput.LeftButtonHold())
            {
                Boolean test = controlManager.CheckGameSound(mouseScreenInput.MousePosition);
                if (test)
                {
                    return(true);
                }
            }

            // Joystick.
            if (joystickInput.JoyHold(Buttons.X))
            {
                return(true);
            }

            // Keyboard.
            if (keyboardInput.KeyHold(Keys.S))
            {
                return(true);
            }

            return(false);
        }