index property

The index position of the Gamepad object in the array reported by the navigator.getGamepads function.

This property is read-only.

Syntax


var nIndexNo = gamepad.index;

Property values

Type: number

The index position of the Gamepad object in the array returned by the getGamepads function.

See also

gamepad

 

 

Show: