Phaser API Documentation

  Version: 
getPad(index)

Description:

Looks-up a single Gamepad based on the given index value.

Parameters:

name type description
index number

The index of the Gamepad to get.

Returns:
Description:

The Gamepad matching the given index, or undefined if none were found.

Examples:
Since: 3.10.0