API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classGenericDualAnalogGamepadMapping
Baseline mapping for dual-analog controllers that follow the standard W3C Gamepad API layout (axes 0–3 for both sticks, axes 4–7 auxiliary). Each signed stick axis is exposed three ways for ergonomic binding: - Two direction-split, non-negative channels (e.g. `LeftStickLeft` / `LeftStickRight`) for "buttons-style" subscriptions. - One signed aggregate channel (e.g. `LeftStickX`) for direct -1..1 consumption — useful for movement or aiming. Device-specific subclasses (Xbox, PlayStation, Switch Pro, etc.) inherit this layout and override only GamepadMapping.family.
import { GenericDualAnalogGamepadMapping } from '@codexo/exojs' Baseline mapping for dual-analog controllers that follow the standard W3C Gamepad API layout (axes 0–3 for both sticks, axes 4–7 auxiliary).
Each signed stick axis is exposed three ways for ergonomic binding: - Two direction-split, non-negative channels (e.g. `LeftStickLeft` / `LeftStickRight`) for "buttons-style" subscriptions. - One signed aggregate channel (e.g. `LeftStickX`) for direct -1..1 consumption — useful for movement or aiming.
Device-specific subclasses (Xbox, PlayStation, Switch Pro, etc.) inherit this layout and override only GamepadMapping.family.
new(): GenericDualAnalogGamepadMapping destroy(): void hasChannel(channel: GamepadButtonChannel | GamepadAxisChannel): boolean axes: readonly GamepadAxis[] buttons: readonly GamepadButton[] family: GamepadMappingFamily