mapping property

A string representing the current configuration (mapping) of the controls on the gamepad device.

This property is read-only.

Syntax


var sMapping = gamepad.mapping;

Property values

Type: String

ValueCondition
Empty string ("")

Control mapping details are not provided by the gamepad device driver.

standard

The controls of the gamepad device are mapped to the standard layout, as defined by the W3C Gamepad specification.

 

Remarks

Support for the mapping property depends on the driver underlying the gamepad device. If the driver does not provide information regarding control mapping, the property returns an empty string. Otherwise, the property returns a value corresponding to the current control configuration. As of this writing, only one value is supported by W3C Gamepad specification.

See also

gamepad

 

 

Show: