connected

open external val connected: Boolean(source)

The connected read-only property of the Gamepad interface returns a boolean indicating whether the gamepad is still connected to the system.

MDN Reference