namespace UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics
{
///
/// Allows for sending haptic impulses to a channel on a device from the XR input subsystem.
///
///
///
public class XRInputDeviceHapticImpulseChannel : IXRHapticImpulseChannel
{
///
/// The channel to receive the impulse.
///
public int motorChannel { get; set; }
///
/// The input device to send the impulse to.
///
public InputDevice device { get; set; }
///
public bool SendHapticImpulse(float amplitude, float duration, float frequency)
{
// InputDevice does not support sending frequency.
return device.SendHapticImpulse((uint)motorChannel, amplitude, duration);
}
}
}