various docs fixes

This commit is contained in:
Peli de Halleux
2016-04-15 15:53:20 -07:00
parent 4ee1799271
commit 8da3c5eb84
12 changed files with 23 additions and 40 deletions

View File

@ -1,6 +1,6 @@
# On Button Pressed
Register an [event handler](/reference/event-handler) that will execute whenever an input button (A, B, or A and B together) is pressed during program execution. When [running code](/js/simulator) with this function in a web browser, click an on-screen input button - labelled A or B.
Register an [event handler](/reference/event-handler) that will execute whenever an input button (A, B, or A and B together) is pressed during program execution. When [running code](/device/simulator) with this function in a web browser, click an on-screen input button - labelled A or B.
```sig
input.onButtonPressed(Button.A, () => {})