onGamepadButtonPress(btn: KGamepadButton | KGamepadButton[], action: (btn: KGamepadButton, gamepad: KGamepad)=>void): KEventController
Register an event that runs when user presses certain gamepad button.
param
btn- The button(s) to listen for.
param
action- The function to run when the event is triggered.
returns
The event controller.
since
v3001.0