共用方式為


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) 。

適用於