pulse method

void pulse()

Makes the gamepad vibrate a small "pulse"

Implementation

// ignore: avoid_void_async -- meant to be ignored
void pulse() async {
  if (!isConnected) return;
  vibrate();
  await Future<void>.delayed(const Duration(milliseconds: 200));
  stopVibrating();
  await Future<void>.delayed(const Duration(milliseconds: 100));
  vibrate();
  await Future<void>.delayed(const Duration(milliseconds: 200));
  stopVibrating();
}