SetGamepadVibration method
Set gamepad vibration for both motors (duration in seconds)
Implementation
void SetGamepadVibration(
num gamepad,
num leftMotor,
num rightMotor,
num duration,
) => run(
() => _debugLabels.SetGamepadVibration(gamepad, leftMotor, rightMotor, duration),
() => _flat.SetGamepadVibration(
gamepad.toInt(),
leftMotor.toDouble(),
rightMotor.toDouble(),
duration.toDouble(),
),
);