rumble method

bool rumble({
  1. required int duration,
  2. int lowFrequency = 65535,
  3. int highFrequency = 65535,
})

Start a rumble effect.

Implementation

bool rumble({
  required final int duration,
  final int lowFrequency = 65535,
  final int highFrequency = 65535,
}) =>
    sdl.sdl
        .SDL_JoystickRumble(handle, lowFrequency, highFrequency, duration) ==
    0;