Ejemplo n.º 1
0
 public virtual void SetupFromProfile(InputDeviceProfile profile)
 {
     if (profile != null)
     {
         m_Profile = profile;
         SetControls(profile.GetControlSetup(this));
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public static void RegisterDeviceProfile(InputDeviceProfile profile)
 {
     s_Input.profileManager.RegisterProfile(profile);
 }