NintendoSwitchGamepadExtensionSetVibration Method (Int32, NintendoSwitchGamepadVibration, Single, Boolean) |
Sets vibration in the controller.
Namespace:
Rewired.ControllerExtensions
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public void SetVibration(
int motorIndex,
NintendoSwitchGamepadVibration vibration,
float duration,
bool stopOtherMotors
)
Parameters
- motorIndex
- Type: SystemInt32
The index of the vibration motor - vibration
- Type: Rewired.ControllerExtensionsNintendoSwitchGamepadVibration
The vibration data. - duration
- Type: SystemSingle
Length of time in seconds to activate the motor before it stops. [0 = Infinite] - stopOtherMotors
- Type: SystemBoolean
Stop other motors?
See Also