public static void AttachDevice(InputDevice inputDevice)
 {
     AssertIsSetup();
     if (inputDevice.IsSupportedOnThisPlatform && !inputDevice.IsAttached)
     {
         if (!devices.Contains(inputDevice))
         {
             devices.Add(inputDevice);
             devices.Sort((InputDevice d1, InputDevice d2) => d1.SortOrder.CompareTo(d2.SortOrder));
         }
         inputDevice.OnAttached();
         if (InputManager.OnDeviceAttached != null)
         {
             InputManager.OnDeviceAttached(inputDevice);
         }
     }
 }