API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classGamepadPromptLayouts

@codexo/exojs / input / stable

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.

1
props
3
methods
0
events
Import
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.

Constructors 1
new(): GamepadPromptLayouts
Methods 3
getControlChannelMap(): ReadonlyMap<GamepadPromptControl, GamepadButtonChannel>
getControlLabels(family: GamepadMappingFamily): ReadonlyMap<GamepadPromptControl, string>
getControlPosition(control: GamepadPromptControl): readonly [number, number]
Properties 1
controls: GamepadPromptControl[]
Source