connected

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

MDN Reference