support flag argument (#2126)
* support flag argument * enable drop semantics * add reentrant * updated shims
This commit is contained in:
committed by
Abhijith Chatra
parent
a0181ef2a7
commit
83ababd521
4
libs/core/shims.d.ts
vendored
4
libs/core/shims.d.ts
vendored
@ -411,8 +411,8 @@ declare namespace control {
|
||||
*/
|
||||
//% weight=20 blockGap=8 blockId="control_on_event" block="on event|from %src=control_event_source_id|with value %value=control_event_value_id"
|
||||
//% help=control/on-event
|
||||
//% blockExternalInputs=1 shim=control::onEvent
|
||||
function onEvent(src: int32, value: int32, handler: () => void): void;
|
||||
//% blockExternalInputs=1 flags.defl=0 shim=control::onEvent
|
||||
function onEvent(src: int32, value: int32, handler: () => void, flags?: int32): void;
|
||||
|
||||
/**
|
||||
* Gets the value of the last event executed on the bus
|
||||
|
Reference in New Issue
Block a user