API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceGamepadDescriptor
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.
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.
id: stringindex: numberlabel: stringmapping: GamepadMappingTypename: null | stringproductId: null | stringproductKey: null | stringvendorId: null | string