Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SimpleHapticsController.SendHapticFeedbackForDuration Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?