Description
The Heartbeat
property of the HapticEffect
class provides a predefined haptic effect that simulates the sensation of a heartbeat. This effect can be used to enhance user experience by providing tactile feedback that mimics the rhythmic pulsing of a heartbeat.
Usage
To use the Heartbeat
haptic effect, you can access it directly from the HapticEffect
class since it is a static property. This effect can be applied to a controller or other haptic-enabled devices to provide a heartbeat-like feedback.
Example
// Example of using the Heartbeat haptic effect
HapticEffect effect = HapticEffect.Heartbeat;
// Assuming you have a method to apply the effect to a device
ApplyHapticEffect(effect);