onGamepadConnect(action: (gamepad: KGamepad)=>void): void
Register an event that runs when a gamepad is connected.
param
action- The function to run when the event is triggered.
returns
The event controller.
since
v3000.0
Register an event that runs when a gamepad is connected.
param
action- The function to run when the event is triggered.
returns
The event controller.
since
v3000.0
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Layer
Camera
Level
Plugins
Button Bindings