API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceGamepadDefinition
A rule that matches one or more physical gamepads and produces a GamepadMapping. `ids` is an optional allow-list of vendor IDs (`"045e"`) or `vendorId:productId` pairs (`"045e:028e"`); when omitted the definition matches every device. `resolve` is called with the parsed GamepadDescriptor and must return a GamepadDefinitionResult - `null`/`undefined` to skip, a mapping otherwise.
import { GamepadDefinition } from '@codexo/exojs'A rule that matches one or more physical gamepads and produces a GamepadMapping.
`ids` is an optional allow-list of vendor IDs (`"045e"`) or `vendorId:productId` pairs (`"045e:028e"`); when omitted the definition matches every device. `resolve` is called with the parsed GamepadDescriptor and must return a GamepadDefinitionResult - `null`/`undefined` to skip, a mapping otherwise.
ids?: string | string[]name?: stringresolve: (descriptor: GamepadDescriptorParsed metadata extracted from a browser `Gamepad.id` string. `vendorId` and `productId` are four-hex-digit strings (e.g. `"045e"`, `"028e"`). `productKey` is…) => GamepadDefinitionResultValue a GamepadDefinition.resolve callback may return. Return a bare GamepadMapping to accept the device with the definition's default name, an object with an…