gb.buttons.pressed

From Gamebuino Wiki
Revision as of 2014-05-19T20:00:42 by Rodot (talk | contribs) (page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Description

Displays a pop-up message on the bottom of the screen for a given duration.

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

See also