Explain what pressed events do (#469)

This commit is contained in:
HelenFoster
2017-07-28 18:05:53 +01:00
committed by Peli de Halleux
parent 1ac227fb7f
commit 39071b5626
5 changed files with 12 additions and 8 deletions

View File

@ -216,7 +216,7 @@ declare namespace basic {
declare namespace input {
/**
* Do something when a button (``A``, ``B`` or both ``A+B``) is pressed
* Do something when a button (A, B or both A+B) is pushed down and released again.
* @param button the button that needs to be pressed
* @param body code to run when event is raised
*/
@ -237,7 +237,7 @@ declare namespace input {
function onGesture(gesture: Gesture, body: () => void): void;
/**
* Do something when a pin is pressed.
* Do something when a pin is touched and released again (while also touching the GND pin).
* @param name the pin that needs to be pressed, eg: TouchPin.P0
* @param body the code to run when the pin is pressed
*/