API reference

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

C

classSwitchProGamepadMapping

@codexo/exojs / input / stable

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.

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

Constructors 1
new(): SwitchProGamepadMapping
Methods 2
destroy(): void
hasChannel(channel: GamepadButtonChannel | GamepadAxisChannel): boolean
Properties 3
axes: readonly GamepadAxis[]
buttons: readonly GamepadButton[]
family: SwitchPro
Source