Skip to content

GamepadProviderOptions

Defined in: src/modules/input/gamepad-provider.ts:97

Options for GamepadProvider.

optional buttonThreshold?: number

Defined in: src/modules/input/gamepad-provider.ts:102

Analog button activation threshold (triggers). A button counts as down when pressed is true OR its analog value reaches this. Default 0.5.


optional deadzone?: number

Defined in: src/modules/input/gamepad-provider.ts:107

Stick magnitude past which an axis direction becomes digitally “down”. Filters resting drift. Range 0–1, default 0.35.


optional source?: GamepadSource

Defined in: src/modules/input/gamepad-provider.ts:113

Snapshot source. Defaults to navigator.getGamepads() when available, and to a no-op (always empty) source otherwise — gamepad input is optional, so construction never throws on a missing navigator.