onButtonRelease(btn: TButton | TButton[], action: (btn: TButton)=>void): KEventController

Register an event that runs when user release a defined button (like "jump") on any input (keyboard, gamepad).

parambtn- The button(s) to listen for.

paramaction- The function to run when the event is triggered.

returnsThe event controller.

sincev3001.0

onButtonRelease(action: (btn: TButton)=>void): KEventController