API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeGamepadSlotStrategy
Strategy used by InputSystem when assigning physical gamepads to slot indices in InputSystem.gamepads. - `'sticky'` (default): each physical pad keeps its slot until a new pad fills an empty slot. A disconnect leaves a gap; reconnect later fills the lowest empty slot. Best for player-stable-binding semantics. - `'compact'`: on disconnect, higher-numbered slots shift down to keep `gamepads[0..N-1]` densely populated. Good for "the first N pads are the N players" workflows.
import { GamepadSlotStrategy } from '@codexo/exojs'Strategy used by InputSystem when assigning physical gamepads to slot indices in InputSystem.gamepads.
- `'sticky'` (default): each physical pad keeps its slot until a new pad fills an empty slot. A disconnect leaves a gap; reconnect later fills the lowest empty slot. Best for player-stable-binding semantics. - `'compact'`: on disconnect, higher-numbered slots shift down to keep `gamepads[0..N-1]` densely populated. Good for "the first N pads are the N players" workflows.
"compact" | "sticky"