Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (15 sloc) 722 Bytes

On Gamepad Button

Register code to run when the @boardname@ receives a command from the paired gamepad.

~hint

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 @boardname@ receives a command from the paired gamepad.

See Also

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

devices
You can’t perform that action at this time.