Files
MMORPG/Packages/com.unity.inputsystem/InputSystem/Plugins/OSX/OSXSupport.cs
cooney ce83f21c93 UI 자동화를 위해 바인딩 기능 구현
- 유니티 에셋 인증 오류로 meta 재생성
2026-01-25 01:31:34 +09:00

33 lines
1.1 KiB
C#

#if UNITY_EDITOR || UNITY_STANDALONE_OSX
using UnityEngine.InputSystem.Layouts;
using UnityEngine.InputSystem.OSX.LowLevel;
namespace UnityEngine.InputSystem.OSX
{
/// <summary>
/// A small helper class to aid in initializing and registering HID device layout builders.
/// </summary>
#if UNITY_DISABLE_DEFAULT_INPUT_PLUGIN_INITIALIZATION
public
#else
internal
#endif
static class OSXSupport
{
/// <summary>
/// Registers HID device layouts for OSX.
/// </summary>
public static void Initialize()
{
// Note that OSX reports manufacturer "Unknown" and a bogus VID/PID according
// to matcher below.
InputSystem.RegisterLayout<NimbusGamepadHid>(
matches: new InputDeviceMatcher()
.WithProduct("Nimbus+", supportRegex: false)
.WithCapability("vendorId", NimbusPlusHIDInputReport.OSXVendorId)
.WithCapability("productId", NimbusPlusHIDInputReport.OSXProductId));
}
}
}
#endif // UNITY_EDITOR || UNITY_STANDALONE_OSX