Explain what pressed events do (#469)
This commit is contained in:
committed by
Peli de Halleux
parent
1ac227fb7f
commit
39071b5626
4
libs/core/shims.d.ts
vendored
4
libs/core/shims.d.ts
vendored
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user