batch replace onButtonPressed(Button...

This commit is contained in:
Peli de Halleux
2016-03-29 21:17:57 -07:00
parent 1f7e0b0f79
commit 850c313c5d
68 changed files with 187 additions and 187 deletions

View File

@ -18,7 +18,7 @@ Now we need to reply after someone asks Micro a yes or no question. We want to
```
basic.showString("ASK ME A QUESTION", 150)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
basic.showString("YES", 150) // ***
}) // ***
```
@ -33,10 +33,10 @@ What if Micro's answer to the question is no? Let's have `NO` be displayed when
```
basic.showString("ASK ME A QUESTION", 150)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
basic.showString("YES", 150)
})
input.onButtonPressed("B", () => {
input.onButtonPressed(Button.B, () => {
basic.showString("NO", 150) // ***
}) // ***
```