API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeGamepadDefinitionResult
@codexo/exojs / input / stable
Value a GamepadDefinition.resolve callback may return. Return a bare GamepadMapping to accept the device with the definition's default name, an object with an optional `name` override, or `null`/`undefined` to decline the device and let the next definition in the list try.
0
props
0
methods
0
events
Import
import { GamepadDefinitionResult } from '@codexo/exojs'Value a GamepadDefinition.resolve callback may return.
Return a bare GamepadMapping to accept the device with the definition's default name, an object with an optional `name` override, or `null`/`undefined` to decline the device and let the next definition in the list try.
Definition1
GamepadMappingTranslation layer between the browser's raw Gamepad API indices and ExoJS-canonical input channels. The engine selects one when a gamepad connects (see `Gamepa… | null | undefined | { mapping: GamepadMappingTranslation layer between the browser's raw Gamepad API indices and ExoJS-canonical input channels. The engine selects one when a gamepad connects (see `Gamepa…; name?: string }Source