API reference

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

I

interfaceGamepadDescriptor

@codexo/exojs / input / stable

Parsed metadata extracted from a browser `Gamepad.id` string. `vendorId` and `productId` are four-hex-digit strings (e.g. `"045e"`, `"028e"`). `productKey` is the colon-joined pair (`"045e:028e"`), used as a compact lookup key. `name` is the human-readable portion of the id with the vendor/product tokens removed, or `null` when the id contained only identifiers. `mapping` is the browser's own verdict, verbatim - `"standard"` when it has normalised the device into the W3C layout, `""` when it hands the raw HID report through.

8
props
0
methods
0
events
Import
import { GamepadDescriptor } from '@codexo/exojs'

Parsed metadata extracted from a browser `Gamepad.id` string.

`vendorId` and `productId` are four-hex-digit strings (e.g. `"045e"`, `"028e"`). `productKey` is the colon-joined pair (`"045e:028e"`), used as a compact lookup key. `name` is the human-readable portion of the id with the vendor/product tokens removed, or `null` when the id contained only identifiers. `mapping` is the browser's own verdict, verbatim - `"standard"` when it has normalised the device into the W3C layout, `""` when it hands the raw HID report through.

Properties8
id: string
index: number
label: string
mapping: GamepadMappingType
name: null | string
productId: null | string
productKey: null | string
vendorId: null | string
Source