static void StopAllHaptics()

robot_2Generated
code_blocksInput

Description

The StopAllHaptics method is a static method of the Sandbox.Input class. It is used to stop all ongoing vibration or haptic feedback events on the current controller. This can be useful in scenarios where you want to ensure that no haptic feedback is being provided, such as when transitioning between game states or when the player pauses the game.

Usage

To use the StopAllHaptics method, simply call it directly from the Sandbox.Input class, as it is a static method. No parameters are required.

Example

// Example of stopping all haptic feedback on the current controller
Sandbox.Input.StopAllHaptics();