public object InitializePlatform(Rewired.Data.ConfigVars configVars) { #if UNITY_SWITCH && !UNITY_EDITOR return(Rewired.Platforms.NintendoSwitch.SwitchSettings.Initialize(configVars)); #else return(null); #endif }
/// <exclude></exclude> /// <summary> /// Initializes the system. Do not call this method. For internal use only. /// </summary> /// <returns>Input manager</returns> object IExternalInputManager.Initialize(Platform platform, Rewired.Data.ConfigVars configVars) { #if UNITY_SWITCH if (platform != Platform.Switch) { return(null); } if (Application.isEditor) { return(null); } if (configVars == null) { return(null); } return(Rewired.Utils.Platforms.Switch.Main.Initialize(this, _userData)); #else return(null); #endif }