setVibration method

Future<bool> setVibration(
  1. double leftMotorSpeed,
  2. double rightMotorSpeed
)

Implementation

Future<bool> setVibration(
    double leftMotorSpeed, double rightMotorSpeed) async {
  try {
    var res = await WinGamepad.setVibration(leftMotorSpeed, rightMotorSpeed);
    return res;
  } on Exception {
    return false;
  }
}