API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classGamepadPromptLayouts
Static utility that drives in-game controller-prompt UI. Provides the canonical set of prompt controls, their normalised [x, y] positions on a generic controller silhouette, device-family label strings (e.g. "A" for Xbox, "Cross" for PlayStation, "B" for Switch), and the mapping from prompt control names to GamepadButton channel values.
import { GamepadPromptLayouts } from '@codexo/exojs'Static utility that drives in-game controller-prompt UI.
Provides the canonical set of prompt controls, their normalised [x, y] positions on a generic controller silhouette, device-family label strings (e.g. "A" for Xbox, "Cross" for PlayStation, "B" for Switch), and the mapping from prompt control names to GamepadButton channel values.
new(): GamepadPromptLayoutsgetControlChannelMap(): 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…, GamepadButtonChannelBranded literal-union type identifying a canonical button-style gamepad input channel. Members are absolute offsets into the engine's shared Float32Array input…>getControlLabels(source: GamepadMappingTranslation layer between the browser's raw Gamepad API indices and ExoJS-canonical input channels. The engine selects one when a gamepad connects (see `Gamepa… | GamepadMappingFamilyDevice family a GamepadMapping belongs to. The value a game keys its own button-glyph or controller-artwork set on: `icons[gamepad.family]`. Two devices share…): 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>getControlPosition(control: 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…): readonly [number, number]