UI 자동화를 위해 바인딩 기능 구현
- 유니티 에셋 인증 오류로 meta 재생성
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
namespace UnityEngine.InputSystem.XR.Haptics
|
||||
{
|
||||
public struct BufferedRumble
|
||||
{
|
||||
public HapticCapabilities capabilities { get; private set; }
|
||||
InputDevice device { get; set; }
|
||||
|
||||
public BufferedRumble(InputDevice device)
|
||||
{
|
||||
if (device == null)
|
||||
throw new System.ArgumentNullException(nameof(device));
|
||||
|
||||
this.device = device;
|
||||
|
||||
var command = GetHapticCapabilitiesCommand.Create();
|
||||
device.ExecuteCommand(ref command);
|
||||
capabilities = command.capabilities;
|
||||
}
|
||||
|
||||
public void EnqueueRumble(byte[] samples)
|
||||
{
|
||||
var command = SendBufferedHapticCommand.Create(samples);
|
||||
device.ExecuteCommand(ref command);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user