API reference

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

C

classXboxGamepadMapping

@codexo/exojs / input / stable

Mapping for Microsoft Xbox controllers (Xbox One, Xbox Series X/S, and compatible third-party XInput devices) connected via USB or Bluetooth. Inherits the full GenericDualAnalogGamepadMapping layout, which mirrors the W3C standard gamepad layout that XInput controllers follow natively. The Share button (Xbox Series) maps to the Share channel.

3
props
2
methods
0
events
Import
import { XboxGamepadMapping } from '@codexo/exojs'

Mapping for Microsoft Xbox controllers (Xbox One, Xbox Series X/S, and compatible third-party XInput devices) connected via USB or Bluetooth.

Inherits the full GenericDualAnalogGamepadMapping layout, which mirrors the W3C standard gamepad layout that XInput controllers follow natively. The Share button (Xbox Series) maps to the Share channel.

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