HideDevicesWithProfile() public static method

public static HideDevicesWithProfile ( Type type ) : void
type System.Type
return void
Example #1
0
        internal static bool Enable()
        {
            var errors = new List <string>();

            if (CheckPlatformSupport(errors))
            {
                if (InputManager.NativeInputEnableMFi)
                {
                    InputManager.HideDevicesWithProfile(typeof(NativeDeviceProfiles.XboxOneSMacNativeProfile));
                    InputManager.HideDevicesWithProfile(typeof(NativeDeviceProfiles.PlayStation4MacNativeProfile));
                    InputManager.HideDevicesWithProfile(typeof(NativeDeviceProfiles.SteelseriesNimbusMacNativeProfile));
                    InputManager.HideDevicesWithProfile(typeof(NativeDeviceProfiles.HoriPadUltimateMacNativeProfile));
                }

                InputManager.AddDeviceManager <NativeInputDeviceManager>();
                return(true);
            }

            foreach (var error in errors)
            {
                Logger.LogError("Error enabling NativeInputDeviceManager: " + error);
            }

            return(false);
        }
Example #2
0
        public static void Enable()
        {
            var errors = new List <string>();

            if (PS4WinDeviceManager.CheckPlatformSupport(errors))
            {
                InputManager.HideDevicesWithProfile(typeof(PlayStation4WinProfile));
                InputManager.AddDeviceManager <PS4WinDeviceManager>();
            }
            else
            {
                foreach (var error in errors)
                {
                    Logger.LogError(error);
                }
            }
        }
Example #3
0
        public static void Enable()
        {
            var errors = new List <string>();

            if (XInputDeviceManager.CheckPlatformSupport(errors))
            {
                InputManager.HideDevicesWithProfile(typeof(Xbox360WinProfile));
                InputManager.HideDevicesWithProfile(typeof(LogitechF710ModeXWinProfile));
                InputManager.AddDeviceManager(new XInputDeviceManager());
            }
            else
            {
                foreach (var error in errors)
                {
                    Logger.LogError(error);
                }
            }
        }
Example #4
0
        internal static void Enable()
        {
            var errors = new List <string>();

            if (CheckPlatformSupport(errors))
            {
                InputManager.HideDevicesWithProfile(typeof(UnityDeviceProfiles.Xbox360WindowsUnityProfile));
                InputManager.HideDevicesWithProfile(typeof(UnityDeviceProfiles.XboxOneWindowsUnityProfile));
                InputManager.HideDevicesWithProfile(typeof(UnityDeviceProfiles.XboxOneWindows10UnityProfile));
                InputManager.HideDevicesWithProfile(typeof(UnityDeviceProfiles.XboxOneWindows10AEUnityProfile));
                InputManager.HideDevicesWithProfile(typeof(UnityDeviceProfiles.LogitechF310ModeXWindowsUnityProfile));
                InputManager.HideDevicesWithProfile(typeof(UnityDeviceProfiles.LogitechF510ModeXWindowsUnityProfile));
                InputManager.HideDevicesWithProfile(typeof(UnityDeviceProfiles.LogitechF710ModeXWindowsUnityProfile));
                InputManager.AddDeviceManager <XInputDeviceManager>();
            }
            else
            {
                foreach (var error in errors)
                {
                    Logger.LogError(error);
                }
            }
        }
        internal static void Enable()
        {
            List <string> list = new List <string>();

            if (CheckPlatformSupport(list))
            {
                InputManager.HideDevicesWithProfile(typeof(Xbox360WinProfile));
                InputManager.HideDevicesWithProfile(typeof(XboxOneWinProfile));
                InputManager.HideDevicesWithProfile(typeof(XboxOneWin10Profile));
                InputManager.HideDevicesWithProfile(typeof(XboxOneWin10AEProfile));
                InputManager.HideDevicesWithProfile(typeof(LogitechF310ModeXWinProfile));
                InputManager.HideDevicesWithProfile(typeof(LogitechF510ModeXWinProfile));
                InputManager.HideDevicesWithProfile(typeof(LogitechF710ModeXWinProfile));
                InputManager.AddDeviceManager <XInputDeviceManager>();
            }
            else
            {
                foreach (string item in list)
                {
                    Logger.LogError(item);
                }
            }
        }