API reference

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

I

interfaceActionMapOptions

@codexo/exojs / input / stable

Construction options for an ActionMap.

1
props
0
methods
0
events
Import
import { ActionMapOptions } from '@codexo/exojs'

Construction options for an ActionMap.

Properties1
Pad every gamepad binding in this map reads from. Defaults to the primary pad (slot 0). This is RUNTIME context, not part of a binding: an action still binds the semantic control (GamepadButton.South), and the map rebases it onto this pad's slot. Nothing about the pad is ever serialized, so a two-player save file describes one control scheme rather than two slot-specific ones. Local multiplayer is therefore one map per player: ts const p1 = new ActionMap({ ... }, { gamepad: this.inputs.gamepads[0] }); const p2 = new ActionMap({ ... }, { gamepad: this.inputs.gamepads[1] }); A Gamepad is a stable slot mailbox that outlives any physical device, so a map keeps working across disconnect and reconnect.
Source