public static AddDeviceManager ( InControl.InputDeviceManager inputDeviceManager ) : void | ||
inputDeviceManager | InControl.InputDeviceManager | |
return | void |
public static void Setup() { isSetup = false; Platform = (SystemInfo.operatingSystem + " " + SystemInfo.deviceModel).ToUpper(); initialTime = 0.0f; currentTime = 0.0f; lastUpdateTime = 0.0f; inputDeviceManagers.Clear(); Devices.Clear(); activeDevice = InputDevice.Null; OnDeviceAttached = null; OnDeviceDetached = null; OnActiveDeviceChanged = null; isSetup = true; if (enableXInput) { if (Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor) { HideDevicesWithProfile(typeof(Xbox360WinProfile)); InputManager.AddDeviceManager(new XInputDeviceManager()); } } AddDeviceManager(new UnityInputDeviceManager()); }
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); }
internal static bool Enable() { #if UNITY_SWITCH && !UNITY_EDITOR InputManager.AddDeviceManager <NintendoSwitchInputDeviceManager>(); return(true); #else return(false); #endif }
public static void Enable() { #if UNITY_ANDROID && INCONTROL_OUYA && !UNITY_EDITOR if (OuyaSDK.isRunningOnOUYASupportedHardware()) { InputManager.AddDeviceManager <OuyaEverywhereDeviceManager>(); } #endif }
public static void Enable() { #if UNITY_ANDROID && INCONTROL_OUYA && !UNITY_EDITOR if (OuyaSDK.isRunningOnOUYASupportedHardware()) { Logger.Log("[InControl] All systems go; firing up OUYA adapter."); InputManager.AddDeviceManager <OuyaEverywhereDeviceManager>(); } else { Logger.Log("[InControl] OuyaSDK.isRunningOnOUYASupportedHardware() has returned false."); } #endif }
internal static bool Enable() { var errors = new List <string>(); if (CheckPlatformSupport(errors)) { InputManager.AddDeviceManager <NativeInputDeviceManager>(); return(true); } foreach (var error in errors) { Debug.LogError("Error enabling NativeInputDeviceManager: " + error); } return(false); }
internal static bool Enable() { List <string> list = new List <string>(); if (CheckPlatformSupport(list)) { InputManager.AddDeviceManager <XboxOneInputDeviceManager>(); return(true); } foreach (string item in list) { Logger.LogError(item); } return(false); }
internal static bool Enable() { List <string> list = new List <string>(); if (CheckPlatformSupport(list)) { InputManager.AddDeviceManager <NativeInputDeviceManager>(); return(true); } foreach (string item in list) { Debug.LogError("Error enabling NativeInputDeviceManager: " + item); } return(false); }
internal static void Enable() { var errors = new List <string>(); if (CheckPlatformSupport(errors)) { InputManager.AddDeviceManager <ICadeDeviceManager>(); } else { foreach (var error in errors) { Logger.LogError(error); } } }
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); } } }
internal static bool Enable() { var errors = new List <string>(); if (CheckPlatformSupport(errors)) { InputManager.AddDeviceManager <XboxOneInputDeviceManager>(); return(true); } else { foreach (var error in errors) { Logger.LogError(error); } return(false); } }
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); } } }
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); } } }
public static void Setup() { Platform = (SystemInfo.operatingSystem + " " + SystemInfo.deviceModel).ToUpper(); initialTime = 0.0f; currentTime = 0.0f; lastUpdateTime = 0.0f; currentTick = 0; inputDeviceManagers.Clear(); Devices.Clear(); activeDevice = InputDevice.Null; isSetup = true; #if UNITY_STANDALONE_WIN || UNITY_EDITOR if (enableXInput) { if (Application.platform == RuntimePlatform.WindowsPlayer || Application.platform == RuntimePlatform.WindowsEditor) { HideDevicesWithProfile(typeof(Xbox360WinProfile)); HideDevicesWithProfile(typeof(LogitechF710ModeXWinProfile)); InputManager.AddDeviceManager(new XInputDeviceManager()); } } #endif AddDeviceManager(new UnityInputDeviceManager()); if (OnSetup != null) { OnSetup.Invoke(); OnSetup = null; } }
public static bool Enable() { InputManager.AddDeviceManager <UWPDeviceManager>(); return(true); }
internal static bool Enable() { InputManager.AddDeviceManager <NewUnityInputDeviceManager>(); return(true); }