Archive of the Gamebuino Classic wiki, recovered from the Wayback Machine (capture 2019-08-06). Read-only.
gb.buttons.pressed
Description
Function used to know when a given button is pressed.
Syntax
gb.buttons.pressed(button);
Parameters
- button (byte): the identifier of the button, to choose from
BTN_A, BTN_B, BTN_C, BTN_UP, BTN_RIGHT, BTN_DOWN, BTN_LEFT
Returns
- boolean: true if the selected button is pressed
Example