Aracılığıyla paylaş


SimpleHapticsController.SendHapticFeedbackForDuration Method

Definition

Start haptic feedback by the input device and continue for the specified amount of time.

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)

Parameters

feedback
SimpleHapticsControllerFeedback

The type of haptic feedback.

intensity
Double

double

The strength of the haptic feedback based on the capability of the input device.

  • 0 disables haptic feedback
  • 1.0 is maximum strength
playDuration
TimeSpan TimeSpan

The time period expressed in 100-nanosecond units (1 = 100ns).

Applies to