API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classGamepadMapping
Translation layer between the browser's raw Gamepad API indices and ExoJS-canonical input channels. The engine selects one when a gamepad connects (see `GamepadDefinition`) and uses it to route raw values to the correct channels every frame. Construct one from GamepadMappingData to describe a device the built-in definitions do not cover.
import { GamepadMapping } from '@codexo/exojs'Translation layer between the browser's raw Gamepad API indices and ExoJS-canonical input channels.
The engine selects one when a gamepad connects (see `GamepadDefinition`) and uses it to route raw values to the correct channels every frame. Construct one from GamepadMappingData to describe a device the built-in definitions do not cover.
hasChannel(channel: GamepadAxisChannelBranded literal-union type identifying a canonical analog axis-style gamepad input channel. Members are absolute offsets into the engine's shared Float32Array… | GamepadButtonChannelBranded literal-union type identifying a canonical button-style gamepad input channel. Members are absolute offsets into the engine's shared Float32Array input…): booleanpromptLabels: ReadonlyMap<GamepadPromptControlNamed controls that can appear in an in-game prompt or button-hint UI. Intentionally a subset of GamepadButton channels - covers the controls a typical prompt…, string> | undefined