public virtual void SetupFromProfile(InputDeviceProfile profile) { if (profile != null) { m_Profile = profile; SetControls(profile.GetControlSetup(this)); } }
public void RegisterProfile(InputDeviceProfile profile) { // Ignore profiles for which we already have an instance of the same type. for (var i = 0; i < m_Profiles.Count; ++i) { if (m_Profiles[i].GetType() == profile.GetType()) { return; } } m_Profiles.Add(profile); }
public static void RegisterDeviceProfile(InputDeviceProfile profile) { s_Input.profileManager.RegisterProfile(profile); }