voxolith

GamepadState

A snapshot of the first connected gamepad, taken in Input.update.

Defined in: engine/src/input/core.ts:81

Properties

PropertyTypeDescriptionDefined in
axesRecord<PadAxis, number>Sticks after a radial deadzone, -1..1 (Y is down-positive, as the API reports).engine/src/input/core.ts:87
buttonsRecord<PadButton, number>Standard-mapping button values 0..1, by name.engine/src/input/core.ts:85
idstringGamepad.id.engine/src/input/core.ts:83

On this page