isButtonReleased(btn?: TButton | TButton[]): boolean
If any or certain bound button(s) are just released last frame on any input (keyboard, gamepad).
param
btn- The button(s) to check.
onUpdate(() => { if (!isButtonReleased()) return // early return as no button was released if (isButtonReleased("jump")) debug.log("Player stopped jumping") if (isButtonReleased(["left", "right"])) debug.log("Player stopped moving") })
since
v3001.0