V4 updates (#210)
* update pxt.json files * Fix button event enums fixes https://github.com/microsoft/pxt-calliope/issues/206 * Fix Safari CSS Rule for iOS app fixes https://github.com/microsoft/pxt-calliope/issues/205 * aprove preffered repos should fix https://github.com/microsoft/pxt-calliope/issues/167
This commit is contained in:
@ -22,10 +22,10 @@ enum RadioMessage {
|
||||
heart,
|
||||
skull
|
||||
}
|
||||
input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
|
||||
input.onButtonEvent(Button.A, input.buttonEventValue(ButtonEvent.Click), function () {
|
||||
radio.sendMessage(RadioMessage.heart)
|
||||
})
|
||||
input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
|
||||
input.onButtonEvent(Button.B, input.buttonEventValue(ButtonEvent.Click), function () {
|
||||
radio.sendMessage(RadioMessage.skull)
|
||||
})
|
||||
radio.onReceivedMessage(RadioMessage.heart, function () {
|
||||
|
@ -20,10 +20,10 @@ enum RadioMessage {
|
||||
heart,
|
||||
skull
|
||||
}
|
||||
input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
|
||||
input.onButtonEvent(Button.A, input.buttonEventValue(ButtonEvent.Click), function () {
|
||||
radio.sendMessage(RadioMessage.heart)
|
||||
})
|
||||
input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
|
||||
input.onButtonEvent(Button.B, input.buttonEventValue(ButtonEvent.Click), function () {
|
||||
radio.sendMessage(RadioMessage.skull)
|
||||
})
|
||||
radio.onReceivedMessage(RadioMessage.heart, function () {
|
||||
|
@ -1,4 +1,13 @@
|
||||
{
|
||||
"name": "radio-broadcast",
|
||||
"description": "Adds new blocks for message communication in the radio category",
|
||||
"dependencies": {
|
||||
"core": "file:../core",
|
||||
"radio": "file:../radio"
|
||||
},
|
||||
"files": [
|
||||
"radio-broadcast.ts"
|
||||
],
|
||||
"additionalFilePath": "../../node_modules/pxt-common-packages/libs/radio-broadcast",
|
||||
"icon": "./static/packages/radio-broadcast/icon.png"
|
||||
}
|
||||
|
Reference in New Issue
Block a user