API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSwitchProGamepadMapping
Mapping for the Nintendo Switch Pro Controller connected via USB or Bluetooth. Inherits the full GenericDualAnalogGamepadMapping layout. The Capture button is surfaced through the Capture channel; Home maps to Guide. Note that on some browsers the controller is only recognised after being paired through Steam or a dedicated driver.
import { SwitchProGamepadMapping } from '@codexo/exojs' Mapping for the Nintendo Switch Pro Controller connected via USB or Bluetooth.
Inherits the full GenericDualAnalogGamepadMapping layout. The Capture button is surfaced through the Capture channel; Home maps to Guide. Note that on some browsers the controller is only recognised after being paired through Steam or a dedicated driver.
new(): SwitchProGamepadMapping destroy(): void hasChannel(channel: GamepadButtonChannel | GamepadAxisChannel): boolean axes: readonly GamepadAxis[] buttons: readonly GamepadButton[] family: SwitchPro