SimpleHapticsController.SendHapticFeedbackForDuration 方法

定义

通过输入设备启动触觉反馈,并在指定的时间内继续。

public:
 virtual void SendHapticFeedbackForDuration(SimpleHapticsControllerFeedback ^ feedback, double intensity, TimeSpan playDuration) = SendHapticFeedbackForDuration;
void SendHapticFeedbackForDuration(SimpleHapticsControllerFeedback const& feedback, double const& intensity, TimeSpan const& playDuration);
public void SendHapticFeedbackForDuration(SimpleHapticsControllerFeedback feedback, double intensity, System.TimeSpan playDuration);
function sendHapticFeedbackForDuration(feedback, intensity, playDuration)
Public Sub SendHapticFeedbackForDuration (feedback As SimpleHapticsControllerFeedback, intensity As Double, playDuration As TimeSpan)

参数

feedback
SimpleHapticsControllerFeedback

触觉反馈的类型。

intensity
Double

double

触觉反馈的强度取决于输入设备的功能。

  • 0 禁用触觉反馈
  • 1.0 是最大强度
playDuration
TimeSpan TimeSpan

以 100 纳秒为单位表示的时间段 (1 = 100ns) 。

适用于