API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSteamDeckGamepadMapping
Mapping for the Valve Steam Deck (and the new Valve Controller via vendor fallback) when its raw HID gamepad is exposed directly to the browser — i.e. when Steam Input is *not* intercepting the device. With Steam Input intercepting, the device appears as `28de:11ff` "Steam Virtual Gamepad" with a standard W3C layout instead, and is routed to GenericDualAnalogGamepadMapping. The raw layout is non-standard: face buttons live at indices 3-6 (not the W3C-standard 0-3), the D-pad lives at indices 16-19, paddles at 20-23, and triggers report as analog axes 8/9 rather than buttons 6/7. Indices are derived from the Linux SDL_GameControllerDB entry for `Valve Steam Deck`.
import { SteamDeckGamepadMapping } from '@codexo/exojs' Mapping for the Valve Steam Deck (and the new Valve Controller via vendor fallback) when its raw HID gamepad is exposed directly to the browser — i.e. when Steam Input is *not* intercepting the device. With Steam Input intercepting, the device appears as `28de:11ff` "Steam Virtual Gamepad" with a standard W3C layout instead, and is routed to GenericDualAnalogGamepadMapping.
The raw layout is non-standard: face buttons live at indices 3-6 (not the W3C-standard 0-3), the D-pad lives at indices 16-19, paddles at 20-23, and triggers report as analog axes 8/9 rather than buttons 6/7. Indices are derived from the Linux SDL_GameControllerDB entry for `Valve Steam Deck`.
new(): SteamDeckGamepadMapping destroy(): void hasChannel(channel: GamepadButtonChannel | GamepadAxisChannel): boolean axes: readonly GamepadAxis[] buttons: readonly GamepadButton[] family: GamepadMappingFamily