fix input.input. typing

This commit is contained in:
Amerlander
2020-03-19 16:26:40 +01:00
parent 0803a13033
commit f30ff02987
57 changed files with 101 additions and 101 deletions

View File

@ -22,10 +22,10 @@ enum RadioMessage {
heart,
skull
}
input.input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
radio.sendMessage(RadioMessage.heart)
})
input.input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
radio.sendMessage(RadioMessage.skull)
})
radio.onReceivedMessage(RadioMessage.heart, function () {

View File

@ -20,10 +20,10 @@ enum RadioMessage {
heart,
skull
}
input.input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
radio.sendMessage(RadioMessage.heart)
})
input.input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
radio.sendMessage(RadioMessage.skull)
})
radio.onReceivedMessage(RadioMessage.heart, function () {

View File

@ -332,12 +332,12 @@ function checkBufferEqual(a: Buffer, b: Buffer) {
return true;
}
input.input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
basic.showString("S");
initSender();
})
input.input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
input.onButtonEvent(Button.B, ButtonEvent.Click, function () {
basic.showString("R");
initReceiver();
})