diff --git a/libs/core/control.cpp b/libs/core/control.cpp index a3509a63..d7bc1939 100644 --- a/libs/core/control.cpp +++ b/libs/core/control.cpp @@ -20,96 +20,184 @@ enum class EventCreationMode { // TODO shouldn't these be renamed to something more sensible anyways? enum EventBusSource { + //% blockIdentity="control.eventSourceId" MICROBIT_ID_BUTTON_A_ = MICROBIT_ID_BUTTON_A, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_BUTTON_B_ = MICROBIT_ID_BUTTON_B, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_BUTTON_AB_ = MICROBIT_ID_BUTTON_AB, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_RADIO_ = MICROBIT_ID_RADIO, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_GESTURE_ = MICROBIT_ID_GESTURE, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_ACCELEROMETER_ = MICROBIT_ID_ACCELEROMETER, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P0_ = MICROBIT_ID_IO_P0, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P1_ = MICROBIT_ID_IO_P1, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P2_ = MICROBIT_ID_IO_P2, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P3_ = MICROBIT_ID_IO_P3, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P4_ = MICROBIT_ID_IO_P4, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P5_ = MICROBIT_ID_IO_P5, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P6_ = MICROBIT_ID_IO_P6, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P7_ = MICROBIT_ID_IO_P7, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P8_ = MICROBIT_ID_IO_P8, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P9_ = MICROBIT_ID_IO_P9, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P10_ = MICROBIT_ID_IO_P10, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P11_ = MICROBIT_ID_IO_P11, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P12_ = MICROBIT_ID_IO_P12, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P13_ = MICROBIT_ID_IO_P13, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P14_ = MICROBIT_ID_IO_P14, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P15_ = MICROBIT_ID_IO_P15, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P16_ = MICROBIT_ID_IO_P16, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P19_ = MICROBIT_ID_IO_P19, + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P20_ = MICROBIT_ID_IO_P20, + //% blockIdentity="control.eventSourceId" MES_DEVICE_INFO_ID_ = MES_DEVICE_INFO_ID, + //% blockIdentity="control.eventSourceId" MES_SIGNAL_STRENGTH_ID_ = MES_SIGNAL_STRENGTH_ID, + //% blockIdentity="control.eventSourceId" MES_DPAD_CONTROLLER_ID_ = MES_DPAD_CONTROLLER_ID, + //% blockIdentity="control.eventSourceId" MES_BROADCAST_GENERAL_ID_ = MES_BROADCAST_GENERAL_ID, }; enum EventBusValue { + //% blockIdentity="control.eventValueId" MICROBIT_EVT_ANY_ = MICROBIT_EVT_ANY, + //% blockIdentity="control.eventValueId" MICROBIT_BUTTON_EVT_CLICK_ = MICROBIT_BUTTON_EVT_CLICK, + //% blockIdentity="control.eventValueId" MICROBIT_RADIO_EVT_DATAGRAM_ = MICROBIT_RADIO_EVT_DATAGRAM, + //% blockIdentity="control.eventValueId" MICROBIT_ACCELEROMETER_EVT_DATA_UPDATE_ = MICROBIT_ACCELEROMETER_EVT_DATA_UPDATE, + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_RISE_ = MICROBIT_PIN_EVT_RISE, + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_FALL_ = MICROBIT_PIN_EVT_FALL, + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_PULSE_HI_ = MICROBIT_PIN_EVT_PULSE_HI, + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_PULSE_LO_ = MICROBIT_PIN_EVT_PULSE_LO, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM1_ = MES_ALERT_EVT_ALARM1, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM2_ = MES_ALERT_EVT_ALARM2, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM3_ = MES_ALERT_EVT_ALARM3, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM4_ = MES_ALERT_EVT_ALARM4, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM5_ = MES_ALERT_EVT_ALARM5, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM6_ = MES_ALERT_EVT_ALARM6, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_DISPLAY_TOAST_ = MES_ALERT_EVT_DISPLAY_TOAST, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_FIND_MY_PHONE_ = MES_ALERT_EVT_FIND_MY_PHONE, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_PLAY_RINGTONE_ = MES_ALERT_EVT_PLAY_RINGTONE, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_PLAY_SOUND_ = MES_ALERT_EVT_PLAY_SOUND, + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_VIBRATE_ = MES_ALERT_EVT_VIBRATE, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_LAUNCH_PHOTO_MODE_ = MES_CAMERA_EVT_LAUNCH_PHOTO_MODE, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_LAUNCH_VIDEO_MODE_ = MES_CAMERA_EVT_LAUNCH_VIDEO_MODE, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_START_VIDEO_CAPTURE_ = MES_CAMERA_EVT_START_VIDEO_CAPTURE, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_STOP_PHOTO_MODE_ = MES_CAMERA_EVT_STOP_PHOTO_MODE, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_STOP_VIDEO_CAPTURE_ = MES_CAMERA_EVT_STOP_VIDEO_CAPTURE, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_STOP_VIDEO_MODE_ = MES_CAMERA_EVT_STOP_VIDEO_MODE, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_TAKE_PHOTO_ = MES_CAMERA_EVT_TAKE_PHOTO, + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_TOGGLE_FRONT_REAR_ = MES_CAMERA_EVT_TOGGLE_FRONT_REAR, + //% blockIdentity="control.eventValueId" MES_DEVICE_DISPLAY_OFF_ = MES_DEVICE_DISPLAY_OFF, + //% blockIdentity="control.eventValueId" MES_DEVICE_DISPLAY_ON_ = MES_DEVICE_DISPLAY_ON, + //% blockIdentity="control.eventValueId" MES_DEVICE_GESTURE_DEVICE_SHAKEN_ = MES_DEVICE_GESTURE_DEVICE_SHAKEN, + //% blockIdentity="control.eventValueId" MES_DEVICE_INCOMING_CALL_ = MES_DEVICE_INCOMING_CALL, + //% blockIdentity="control.eventValueId" MES_DEVICE_INCOMING_MESSAGE_ = MES_DEVICE_INCOMING_MESSAGE, + //% blockIdentity="control.eventValueId" MES_DEVICE_ORIENTATION_LANDSCAPE_ = MES_DEVICE_ORIENTATION_LANDSCAPE, + //% blockIdentity="control.eventValueId" MES_DEVICE_ORIENTATION_PORTRAIT_ = MES_DEVICE_ORIENTATION_PORTRAIT, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_1_DOWN_ = MES_DPAD_BUTTON_1_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_1_UP_ = MES_DPAD_BUTTON_1_UP, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_2_DOWN_ = MES_DPAD_BUTTON_2_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_2_UP_ = MES_DPAD_BUTTON_2_UP, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_3_DOWN_ = MES_DPAD_BUTTON_3_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_3_UP_ = MES_DPAD_BUTTON_3_UP, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_4_DOWN_ = MES_DPAD_BUTTON_4_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_4_UP_ = MES_DPAD_BUTTON_4_UP, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_A_DOWN_ = MES_DPAD_BUTTON_A_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_A_UP_ = MES_DPAD_BUTTON_A_UP, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_B_DOWN_ = MES_DPAD_BUTTON_B_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_B_UP_ = MES_DPAD_BUTTON_B_UP, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_C_DOWN_ = MES_DPAD_BUTTON_C_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_C_UP_ = MES_DPAD_BUTTON_C_UP, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_D_DOWN_ = MES_DPAD_BUTTON_D_DOWN, + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_D_UP_ = MES_DPAD_BUTTON_D_UP, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_FORWARD_ = MES_REMOTE_CONTROL_EVT_FORWARD, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_NEXTTRACK_ = MES_REMOTE_CONTROL_EVT_NEXTTRACK, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_PAUSE_ = MES_REMOTE_CONTROL_EVT_PAUSE, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_PLAY_ = MES_REMOTE_CONTROL_EVT_PLAY, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_PREVTRACK_ = MES_REMOTE_CONTROL_EVT_PREVTRACK, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_REWIND_ = MES_REMOTE_CONTROL_EVT_REWIND, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_STOP_ = MES_REMOTE_CONTROL_EVT_STOP, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_VOLUMEDOWN_ = MES_REMOTE_CONTROL_EVT_VOLUMEDOWN, + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_VOLUMEUP_ = MES_REMOTE_CONTROL_EVT_VOLUMEUP, }; diff --git a/libs/core/enums.d.ts b/libs/core/enums.d.ts index 5abc0eeb..9f6cfbcf 100644 --- a/libs/core/enums.d.ts +++ b/libs/core/enums.d.ts @@ -142,97 +142,185 @@ declare namespace input { declare enum EventBusSource { + //% blockIdentity="control.eventSourceId" MICROBIT_ID_BUTTON_A = 1, // MICROBIT_ID_BUTTON_A + //% blockIdentity="control.eventSourceId" MICROBIT_ID_BUTTON_B = 2, // MICROBIT_ID_BUTTON_B + //% blockIdentity="control.eventSourceId" MICROBIT_ID_BUTTON_AB = 26, // MICROBIT_ID_BUTTON_AB + //% blockIdentity="control.eventSourceId" MICROBIT_ID_RADIO = 29, // MICROBIT_ID_RADIO + //% blockIdentity="control.eventSourceId" MICROBIT_ID_GESTURE = 27, // MICROBIT_ID_GESTURE + //% blockIdentity="control.eventSourceId" MICROBIT_ID_ACCELEROMETER = 4, // MICROBIT_ID_ACCELEROMETER + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P0 = 7, // MICROBIT_ID_IO_P0 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P1 = 8, // MICROBIT_ID_IO_P1 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P2 = 9, // MICROBIT_ID_IO_P2 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P3 = 10, // MICROBIT_ID_IO_P3 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P4 = 11, // MICROBIT_ID_IO_P4 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P5 = 12, // MICROBIT_ID_IO_P5 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P6 = 13, // MICROBIT_ID_IO_P6 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P7 = 14, // MICROBIT_ID_IO_P7 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P8 = 15, // MICROBIT_ID_IO_P8 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P9 = 16, // MICROBIT_ID_IO_P9 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P10 = 17, // MICROBIT_ID_IO_P10 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P11 = 18, // MICROBIT_ID_IO_P11 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P12 = 19, // MICROBIT_ID_IO_P12 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P13 = 20, // MICROBIT_ID_IO_P13 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P14 = 21, // MICROBIT_ID_IO_P14 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P15 = 22, // MICROBIT_ID_IO_P15 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P16 = 23, // MICROBIT_ID_IO_P16 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P19 = 24, // MICROBIT_ID_IO_P19 + //% blockIdentity="control.eventSourceId" MICROBIT_ID_IO_P20 = 25, // MICROBIT_ID_IO_P20 + //% blockIdentity="control.eventSourceId" MES_DEVICE_INFO_ID = 1103, // MES_DEVICE_INFO_ID + //% blockIdentity="control.eventSourceId" MES_SIGNAL_STRENGTH_ID = 1101, // MES_SIGNAL_STRENGTH_ID + //% blockIdentity="control.eventSourceId" MES_DPAD_CONTROLLER_ID = 1104, // MES_DPAD_CONTROLLER_ID + //% blockIdentity="control.eventSourceId" MES_BROADCAST_GENERAL_ID = 2000, // MES_BROADCAST_GENERAL_ID } declare enum EventBusValue { + //% blockIdentity="control.eventValueId" MICROBIT_EVT_ANY = 0, // MICROBIT_EVT_ANY + //% blockIdentity="control.eventValueId" MICROBIT_BUTTON_EVT_CLICK = 3, // MICROBIT_BUTTON_EVT_CLICK + //% blockIdentity="control.eventValueId" MICROBIT_RADIO_EVT_DATAGRAM = 1, // MICROBIT_RADIO_EVT_DATAGRAM + //% blockIdentity="control.eventValueId" MICROBIT_ACCELEROMETER_EVT_DATA_UPDATE = 1, // MICROBIT_ACCELEROMETER_EVT_DATA_UPDATE + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_RISE = 2, // MICROBIT_PIN_EVT_RISE + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_FALL = 3, // MICROBIT_PIN_EVT_FALL + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_PULSE_HI = 4, // MICROBIT_PIN_EVT_PULSE_HI + //% blockIdentity="control.eventValueId" MICROBIT_PIN_EVT_PULSE_LO = 5, // MICROBIT_PIN_EVT_PULSE_LO + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM1 = 6, // MES_ALERT_EVT_ALARM1 + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM2 = 7, // MES_ALERT_EVT_ALARM2 + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM3 = 8, // MES_ALERT_EVT_ALARM3 + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM4 = 9, // MES_ALERT_EVT_ALARM4 + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM5 = 10, // MES_ALERT_EVT_ALARM5 + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_ALARM6 = 11, // MES_ALERT_EVT_ALARM6 + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_DISPLAY_TOAST = 1, // MES_ALERT_EVT_DISPLAY_TOAST + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_FIND_MY_PHONE = 5, // MES_ALERT_EVT_FIND_MY_PHONE + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_PLAY_RINGTONE = 4, // MES_ALERT_EVT_PLAY_RINGTONE + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_PLAY_SOUND = 3, // MES_ALERT_EVT_PLAY_SOUND + //% blockIdentity="control.eventValueId" MES_ALERT_EVT_VIBRATE = 2, // MES_ALERT_EVT_VIBRATE + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_LAUNCH_PHOTO_MODE = 1, // MES_CAMERA_EVT_LAUNCH_PHOTO_MODE + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_LAUNCH_VIDEO_MODE = 2, // MES_CAMERA_EVT_LAUNCH_VIDEO_MODE + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_START_VIDEO_CAPTURE = 4, // MES_CAMERA_EVT_START_VIDEO_CAPTURE + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_STOP_PHOTO_MODE = 6, // MES_CAMERA_EVT_STOP_PHOTO_MODE + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_STOP_VIDEO_CAPTURE = 5, // MES_CAMERA_EVT_STOP_VIDEO_CAPTURE + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_STOP_VIDEO_MODE = 7, // MES_CAMERA_EVT_STOP_VIDEO_MODE + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_TAKE_PHOTO = 3, // MES_CAMERA_EVT_TAKE_PHOTO + //% blockIdentity="control.eventValueId" MES_CAMERA_EVT_TOGGLE_FRONT_REAR = 8, // MES_CAMERA_EVT_TOGGLE_FRONT_REAR + //% blockIdentity="control.eventValueId" MES_DEVICE_DISPLAY_OFF = 5, // MES_DEVICE_DISPLAY_OFF + //% blockIdentity="control.eventValueId" MES_DEVICE_DISPLAY_ON = 6, // MES_DEVICE_DISPLAY_ON + //% blockIdentity="control.eventValueId" MES_DEVICE_GESTURE_DEVICE_SHAKEN = 4, // MES_DEVICE_GESTURE_DEVICE_SHAKEN + //% blockIdentity="control.eventValueId" MES_DEVICE_INCOMING_CALL = 7, // MES_DEVICE_INCOMING_CALL + //% blockIdentity="control.eventValueId" MES_DEVICE_INCOMING_MESSAGE = 8, // MES_DEVICE_INCOMING_MESSAGE + //% blockIdentity="control.eventValueId" MES_DEVICE_ORIENTATION_LANDSCAPE = 1, // MES_DEVICE_ORIENTATION_LANDSCAPE + //% blockIdentity="control.eventValueId" MES_DEVICE_ORIENTATION_PORTRAIT = 2, // MES_DEVICE_ORIENTATION_PORTRAIT + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_1_DOWN = 9, // MES_DPAD_BUTTON_1_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_1_UP = 10, // MES_DPAD_BUTTON_1_UP + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_2_DOWN = 11, // MES_DPAD_BUTTON_2_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_2_UP = 12, // MES_DPAD_BUTTON_2_UP + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_3_DOWN = 13, // MES_DPAD_BUTTON_3_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_3_UP = 14, // MES_DPAD_BUTTON_3_UP + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_4_DOWN = 15, // MES_DPAD_BUTTON_4_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_4_UP = 16, // MES_DPAD_BUTTON_4_UP + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_A_DOWN = 1, // MES_DPAD_BUTTON_A_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_A_UP = 2, // MES_DPAD_BUTTON_A_UP + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_B_DOWN = 3, // MES_DPAD_BUTTON_B_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_B_UP = 4, // MES_DPAD_BUTTON_B_UP + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_C_DOWN = 5, // MES_DPAD_BUTTON_C_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_C_UP = 6, // MES_DPAD_BUTTON_C_UP + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_D_DOWN = 7, // MES_DPAD_BUTTON_D_DOWN + //% blockIdentity="control.eventValueId" MES_DPAD_BUTTON_D_UP = 8, // MES_DPAD_BUTTON_D_UP + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_FORWARD = 6, // MES_REMOTE_CONTROL_EVT_FORWARD + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_NEXTTRACK = 4, // MES_REMOTE_CONTROL_EVT_NEXTTRACK + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_PAUSE = 2, // MES_REMOTE_CONTROL_EVT_PAUSE + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_PLAY = 1, // MES_REMOTE_CONTROL_EVT_PLAY + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_PREVTRACK = 5, // MES_REMOTE_CONTROL_EVT_PREVTRACK + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_REWIND = 7, // MES_REMOTE_CONTROL_EVT_REWIND + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_STOP = 3, // MES_REMOTE_CONTROL_EVT_STOP + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_VOLUMEDOWN = 9, // MES_REMOTE_CONTROL_EVT_VOLUMEDOWN + //% blockIdentity="control.eventValueId" MES_REMOTE_CONTROL_EVT_VOLUMEUP = 8, // MES_REMOTE_CONTROL_EVT_VOLUMEUP } declare namespace control {