connected property

Indicates whether the gamepad device is connected.

This property is read-only.

Syntax


var bIsConnected = gamepad.connected;

Property values

Type: boolean

ValueCondition
true

The gamepad devices is connected and available.

false

The gamepad devices is not connected or available.

 

See also

gamepad

 

 

Show: