GamepadProviderOptions
Defined in: src/modules/input/gamepad-provider.ts:97
Options for GamepadProvider.
Properties
Section titled “Properties”buttonThreshold?
Section titled “buttonThreshold?”
optionalbuttonThreshold?: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.
deadzone?
Section titled “deadzone?”
optionaldeadzone?: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.
source?
Section titled “source?”
optionalsource?: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.