pxt-calliope/docs/reference/control/event-value-id.md
2016-07-21 13:29:59 -07:00

357 B

Event Value ID

Return a code representing the type of the event (button click, device gesture, and so on).

control.eventValueId(EventBusValue.MICROBIT_EVT_ANY);

This is an advanced API. For more information, see the micro:bit runtime messageBus documentation.