" />

gb.buttons.timeHeld

DESCRIPTION


This function is used to determine how long a button has been held down.

SYNTAX


gb.buttons.timeHeld(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


  • byte: how long the button has been held down, in number of frames (20 frames per second by default)

SEE ALSO


0