mwg API
    Preparing search index...

    Function rumble

    • Vibrates one connected gamepad, if it and the browser expose a dual-rumble actuator - a no-op otherwise, rather than throwing, since support is inconsistent across browsers and a game reaching for "juice" should not have to feature-test this itself.

      Parameters

      • padIndex: number
      • options: RumbleOptions
      • pads: readonly (Gamepad | null)[] = ...

      Returns void