Ejemplo n.º 1
0
 public static void HideDevicesWithProfile(Type type)
 {
     if (type.IsSubclassOf(typeof(UnityInputDeviceProfile)))
     {
         InputDeviceProfile.Hide(type);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Hides the devices with a given profile.
        /// This must be called before the input manager is initialized.
        /// </summary>
        /// <param name="type">Type.</param>
        public static void HideDevicesWithProfile(Type type)
        {
#if NETFX_CORE
            if (type.GetTypeInfo().IsAssignableFrom(typeof(UnityInputDeviceProfile).GetTypeInfo()))
#else
            if (type.IsSubclassOf(typeof(UnityInputDeviceProfile)))
#endif
            {
                InputDeviceProfile.Hide(type);
            }
        }