2016-03-25 21:13:09 -07:00
|
|
|
//% weight=1 color="#333333"
|
2016-03-10 14:01:04 -08:00
|
|
|
namespace control {
|
2016-03-29 17:11:17 -07:00
|
|
|
|
2016-03-10 14:01:04 -08:00
|
|
|
/**
|
2016-03-29 17:11:17 -07:00
|
|
|
* Returns the value of a C++ runtime constant
|
2016-03-10 14:01:04 -08:00
|
|
|
*/
|
2016-03-29 17:11:17 -07:00
|
|
|
//% weight=19 weight=19 blockId="control_event_source" block="%id"
|
|
|
|
export function eventSource(id: EventBusSource) : number {
|
|
|
|
return id;
|
|
|
|
}
|
2016-03-28 00:23:00 -07:00
|
|
|
/**
|
2016-03-29 17:11:17 -07:00
|
|
|
* Returns the value of a C++ runtime constant
|
2016-03-28 00:23:00 -07:00
|
|
|
*/
|
2016-03-29 17:11:17 -07:00
|
|
|
//% weight=19 weight=19 blockId="control_event_value" block="%id"
|
|
|
|
export function eventValue(id: EventBusValue) : number {
|
|
|
|
return id;
|
|
|
|
}
|
2016-03-10 14:01:04 -08:00
|
|
|
}
|