fix input.input. typing
This commit is contained in:
@ -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 () {
|
||||
|
@ -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 () {
|
||||
|
@ -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();
|
||||
})
|
||||
|
Reference in New Issue
Block a user