Type

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.

}

A KAPLAY gamepad

group Input

subgroup Gamepad

kaplay logo

Components