편집

다음을 통해 공유


IMixedRealityHapticFeedback.StartHapticImpulse(Single, Single) Method

Definition

Start haptic feedback by the input device.

public bool StartHapticImpulse (float intensity, float durationInSeconds = 3.402823E+38);
abstract member StartHapticImpulse : single * single -> bool
Public Function StartHapticImpulse (intensity As Single, Optional durationInSeconds As Single = 3.402823E+38) As Boolean

Parameters

intensity
Single

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

durationInSeconds
Single

The duration in seconds or float.MaxValue for indefinite duration (if supported by the platform).

Returns

True if haptic feedback was successfully started.

Applies to