A game about forced loneliness, made by TACStudios
1#if UNITY_EDITOR || UNITY_STANDALONE_OSX 2using UnityEngine.InputSystem.Layouts; 3using UnityEngine.InputSystem.OSX.LowLevel; 4 5namespace UnityEngine.InputSystem.OSX 6{ 7 /// <summary> 8 /// A small helper class to aid in initializing and registering HID device layout builders. 9 /// </summary> 10#if UNITY_DISABLE_DEFAULT_INPUT_PLUGIN_INITIALIZATION 11 public 12#else 13 internal 14#endif 15 static class OSXSupport 16 { 17 /// <summary> 18 /// Registers HID device layouts for OSX. 19 /// </summary> 20 public static void Initialize() 21 { 22 // Note that OSX reports manufacturer "Unknown" and a bogus VID/PID according 23 // to matcher below. 24 InputSystem.RegisterLayout<NimbusGamepadHid>( 25 matches: new InputDeviceMatcher() 26 .WithProduct("Nimbus+", supportRegex: false) 27 .WithCapability("vendorId", NimbusPlusHIDInputReport.OSXVendorId) 28 .WithCapability("productId", NimbusPlusHIDInputReport.OSXProductId)); 29 } 30 } 31} 32#endif // UNITY_EDITOR || UNITY_STANDALONE_OSX