On Gamepad Button

Register code to run when the micro:bit receives a command from the paired gamepad.

App required You must use one of the micro:bit apps to use this functionality.

devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {})

Parameters

  • body: Action code to run when the the micro:bit receives a command from the paired gamepad.

See Also

tell remote control to, raise alert to, signal strength, on signal strength changed

devices