API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceGamepadMappingData
@codexo/exojs / input / stable
One device layout, as data. This is the whole definition of a controller as far as the engine is concerned - no subclassing is involved, and a custom device is described by writing one of these rather than by extending anything.
5
props
0
methods
0
events
Import
import { GamepadMappingData } from '@codexo/exojs'One device layout, as data.
This is the whole definition of a controller as far as the engine is concerned - no subclassing is involved, and a custom device is described by writing one of these rather than by extending anything.
Properties5
Axes, addressed by the browser's Gamepad.axes[] index.
Buttons, addressed by the browser's Gamepad.buttons[] index.
Device family, for prompt labels and for the game's own artwork selection.
Index space buttons and axes are written against. Defaults to GamepadMappingLayout.Standard.
Prompt labels that differ from this device's family default. A family spans several product generations whose buttons are not all named the same - the PlayStation Select button reads "Select" on a PS3 pad, "Share" on a DualShock 4 and "Create" on a DualSense, yet all three share one family. List only the controls that differ.
Source