mapping

open external val mapping: GamepadMappingType(source)

The mapping read-only property of the Gamepad interface returns a string indicating whether the browser has remapped the controls on the device to a known layout.

MDN Reference