NintendoSwitchGamepadExtensionSetVibration(Int32, NintendoSwitchGamepadVibration, Single) Method |
Sets vibration in the controller.
Namespace: Rewired.ControllerExtensionsAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void SetVibration(
int motorIndex,
NintendoSwitchGamepadVibration vibration,
float duration
)
Parameters
- motorIndex Int32
- The index of the vibration motor
- vibration NintendoSwitchGamepadVibration
- The vibration data.
- duration Single
- Length of time in seconds to activate the motor before it stops. [0 = Infinite]
See Also