melonJS
    Preparing search index...

    Function hasGamepadVibration

    • Whether the pad at this index can vibrate.

      For deciding what to OFFER — a rumble toggle in an options screen, say. Nothing needs to call it before input.vibrateGamepad, which is a no-op on a pad without motors.

      Parameters

      • index: number

        Gamepad index

      Returns boolean

      true when there is haptic hardware to drive