Function
onGamepadStick
(stick: GamepadStick, action: (value: Vec2, gameepad: KGamepad) => void): KEventControllerRegister an event that runs when the gamepad axis exists.
param stick
- The stick to listen for.
param action
- The function to run when the event is triggered.
returns The event controller.
since v3000.0
group Input