Add button down/up to EventBusValue (#468)
This commit is contained in:
parent
4d95445e7b
commit
1ac227fb7f
@ -84,6 +84,10 @@ enum EventBusValue {
|
|||||||
//% blockIdentity="control.eventValueId"
|
//% blockIdentity="control.eventValueId"
|
||||||
MICROBIT_EVT_ANY_ = MICROBIT_EVT_ANY,
|
MICROBIT_EVT_ANY_ = MICROBIT_EVT_ANY,
|
||||||
//% blockIdentity="control.eventValueId"
|
//% blockIdentity="control.eventValueId"
|
||||||
|
MICROBIT_BUTTON_EVT_DOWN_ = MICROBIT_BUTTON_EVT_DOWN,
|
||||||
|
//% blockIdentity="control.eventValueId"
|
||||||
|
MICROBIT_BUTTON_EVT_UP_ = MICROBIT_BUTTON_EVT_UP,
|
||||||
|
//% blockIdentity="control.eventValueId"
|
||||||
MICROBIT_BUTTON_EVT_CLICK_ = MICROBIT_BUTTON_EVT_CLICK,
|
MICROBIT_BUTTON_EVT_CLICK_ = MICROBIT_BUTTON_EVT_CLICK,
|
||||||
//% blockIdentity="control.eventValueId"
|
//% blockIdentity="control.eventValueId"
|
||||||
MICROBIT_RADIO_EVT_DATAGRAM_ = MICROBIT_RADIO_EVT_DATAGRAM,
|
MICROBIT_RADIO_EVT_DATAGRAM_ = MICROBIT_RADIO_EVT_DATAGRAM,
|
||||||
|
4
libs/core/enums.d.ts
vendored
4
libs/core/enums.d.ts
vendored
@ -243,6 +243,10 @@ declare namespace input {
|
|||||||
//% blockIdentity="control.eventValueId"
|
//% blockIdentity="control.eventValueId"
|
||||||
MICROBIT_EVT_ANY = 0, // MICROBIT_EVT_ANY
|
MICROBIT_EVT_ANY = 0, // MICROBIT_EVT_ANY
|
||||||
//% blockIdentity="control.eventValueId"
|
//% blockIdentity="control.eventValueId"
|
||||||
|
MICROBIT_BUTTON_EVT_DOWN = 1, // MICROBIT_BUTTON_EVT_DOWN
|
||||||
|
//% blockIdentity="control.eventValueId"
|
||||||
|
MICROBIT_BUTTON_EVT_UP = 2, // MICROBIT_BUTTON_EVT_UP
|
||||||
|
//% blockIdentity="control.eventValueId"
|
||||||
MICROBIT_BUTTON_EVT_CLICK = 3, // MICROBIT_BUTTON_EVT_CLICK
|
MICROBIT_BUTTON_EVT_CLICK = 3, // MICROBIT_BUTTON_EVT_CLICK
|
||||||
//% blockIdentity="control.eventValueId"
|
//% blockIdentity="control.eventValueId"
|
||||||
MICROBIT_RADIO_EVT_DATAGRAM = 1, // MICROBIT_RADIO_EVT_DATAGRAM
|
MICROBIT_RADIO_EVT_DATAGRAM = 1, // MICROBIT_RADIO_EVT_DATAGRAM
|
||||||
|
Loading…
Reference in New Issue
Block a user