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

@ -12,7 +12,7 @@ At the end of the tutorial, click `keep editing`. Your code should look like thi
```
let inital = 5
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let doubled1 = double(initial)
basic.showNumber(doubled1, 150) // ***
})
@ -40,11 +40,11 @@ Add a condition for when button `B` is pressed. We will use this condition in th
```
initial = 5
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let doubled = double(initial)
basic.showNumber(doubled, 150)
})
input.onButtonPressed("B", () => {
input.onButtonPressed(Button.B, () => {
}) // ***
```

View File

@ -21,7 +21,7 @@ let x = 5
<br/>
```
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
})
```