API reference

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

I

interfaceGamepadDefinition

@codexo/exojs / input / stable

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.

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

Properties3
ids?: string | string[]
name?: string
Source