Phaser API Documentation

  Version: 
getAxisValue(index)

Description:

Gets the value of an axis based on the given index. The index must be valid within the range of axes supported by this Gamepad. The return value will be a float between 0 and 1.

Parameters:

name type description
index number

The index of the axes to get the value for.

Returns:
Description:

The value of the axis, between 0 and 1.

Type:
  • number
Since: 3.10.0