Dela via


SimpleHapticsController.SendHapticFeedbackForPlayCount Method

Definition

Start haptic feedback by the input device and repeat for the specified number of times.

public:
 virtual void SendHapticFeedbackForPlayCount(SimpleHapticsControllerFeedback ^ feedback, double intensity, int playCount, TimeSpan replayPauseInterval) = SendHapticFeedbackForPlayCount;
void SendHapticFeedbackForPlayCount(SimpleHapticsControllerFeedback const& feedback, double const& intensity, int const& playCount, TimeSpan const& replayPauseInterval);
public void SendHapticFeedbackForPlayCount(SimpleHapticsControllerFeedback feedback, double intensity, int playCount, System.TimeSpan replayPauseInterval);
function sendHapticFeedbackForPlayCount(feedback, intensity, playCount, replayPauseInterval)
Public Sub SendHapticFeedbackForPlayCount (feedback As SimpleHapticsControllerFeedback, intensity As Double, playCount As Integer, replayPauseInterval 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
playCount
Int32

int

The number of times to repeat the haptic feedback.

replayPauseInterval
TimeSpan TimeSpan

The time period between feedback cycles, expressed in 100-nanosecond units (1 = 100ns).

Applies to