KGamepad:

index: number

The order of the gamepad in the gamepad list.

isPressed(b: KGamepadButton ): boolean

If certain button is pressed.

isDown(b: KGamepadButton ): boolean

If certain button is held down.

isReleased(b: KGamepadButton ): boolean

If certain button is released.

getStick(stick: KGamepadStick ): Vec2

Get the value of a stick.

getAnalog(b: KGamepadButton ): number

Get the 0-1 analog value of the button (useful for `ltrigger` and `rtrigger` buttons)

A BUILDNANA gamepad

groupInput

subgroupGamepad