NintendoSwitchGamepadExtensionSetVibration(Int32, Single, Single, Single, Single, Single, Boolean) 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,
float amplitudeLow,
float frequencyLow,
float amplitudeHigh,
float frequencyHigh,
float duration,
bool stopOtherMotors
)
Parameters
- motorIndex Int32
- The index of the vibration motor
- amplitudeLow Single
- The low band amplitude (using a unit where the maximum is 1.0f)
- frequencyLow Single
- The low band frequency (using Hz units)
- amplitudeHigh Single
- The high band amplitude (using a unit where the maximum is 1.0f
- frequencyHigh Single
- The high band frequency (using Hz units)
- duration Single
- Length of time in seconds to activate the motor before it stops. [0 = Infinite]
- stopOtherMotors Boolean
- Stop other motors?
See Also