API reference

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

T

typeGamepadSlotStrategy

@codexo/exojs / input / stable

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.

0
props
0
methods
0
events
Import
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.

Definition1
"compact" | "sticky"
Source