Пример #1
0
        public static bool AnyInput(GamepadIndex gamepad)
        {
            PrintMissingAdapterWarningIfNecessary();

            GamepadStateService service = InputManager.GetService <GamepadStateService>();

            return(service != null?service.AnyInput(gamepad) : false);
        }
Пример #2
0
        public static bool AnyInput()
        {
            KeyboardStateService service = InputManager.GetService <KeyboardStateService>();

            return(service != null ? service.AnyInput : false);
        }