" />

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

SEE ALSO


0