Exemple #1
0
        /// <summary>
        /// Finds a joystick, sets IsEnabled to true or if it cannot be found - false.
        /// </summary>
        /// <returns></returns>
        public async Task <bool> FindOrCheck()
        {
            await joystick.XboxJoystickCheck();

            IsEnabled         = joystick.JoystickIsWorking;
            this.InstanceName = IsEnabled ? joystick.DeviceId : "None";
            return(IsEnabled);
        }