pxt-calliope/docs/reference/control/event-value-id.md

13 lines
359 B
Markdown
Raw Normal View History

2016-07-21 13:29:59 -07:00
# Event Value ID
2016-07-20 11:31:14 -07:00
2016-07-21 13:29:59 -07:00
Return a code representing the type of the event (button click, device gesture, and so on).
2016-07-20 11:31:14 -07:00
```sig
2016-07-21 13:29:59 -07:00
control.eventValueId(EventBusValue.MICROBIT_EVT_ANY);
2016-07-20 11:31:14 -07:00
```
2016-07-21 13:29:59 -07:00
**This is an advanced API.** For more information, see the
2016-11-01 17:44:37 -07:00
[@boardname@ runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
2016-07-20 11:31:14 -07:00