GamepadRumble extension

Methods to rumble the gamepad.

on

Methods

rumble({required Duration duration, double intensity = 1}) → void

Available on SdlGamepad, provided by the GamepadRumble extension

Rumbles the gamepad at the given intensity.
rumbleSides({required Duration duration, double leftIntensity = 1, double rightIntensity = 1}) → void

Available on SdlGamepad, provided by the GamepadRumble extension

Rumbles each side of the gamepad at the given intensity.
rumbleTriggers({required Duration duration, double leftIntensity = 1, double rightIntensity = 1}) bool

Available on SdlGamepad, provided by the GamepadRumble extension

Rumbles the triggers at the given intensity.
stopRumble() → void

Available on SdlGamepad, provided by the GamepadRumble extension

Stops rumbling. Equivalent to calling rumble with zero intensity.