Type
KGamepad
: {index
: numberThe order of the gamepad in the gamepad list.
isPressed
(b: KGamepadButton): booleanIf certain button is pressed.
isDown
(b: KGamepadButton): booleanIf certain button is held down.
isReleased
(b: KGamepadButton): booleanIf certain button is released.
getStick
(stick: KGamepadStick): Vec2Get the value of a stick.
getAnalog
(b: KGamepadButton): numberGet the 0-1 analog value of the button
(useful for ltrigger and rtrigger buttons)
A KAPLAY gamepad
group Input
subgroup Gamepad