App required You must use one of the micro:bit apps to use this functionality.
On Gamepad Button
Register code to run when the board receives a command from the paired gamepad.
devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {})
Parameters
body
: Action code to run when the the board receives a command from the paired gamepad.
See Also
tell remote control to, raise alert to, signal strength, on signal strength changed
devices