onGamepadButtonDown(btn: KGamepadButton | KGamepadButton[] , action: (btn: KGamepadButton , gamepad: KGamepad )=>void ): KEventController

Register an event that runs every frame when certain gamepad buttons are held down.

parambtn- The button(s) to listen for.

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

returnThe event controller.

sincev3001.0

groupInput

onGamepadButtonDown(action: (btn: KGamepadButton , gamepad: KGamepad )=>void ): KEventController

Register an event that runs every frame when any gamepad buttons are held down.

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

returnsThe event controller.

sincev3001.0

groupInput