// strings: void gb.gui.keyboard( const char* title , char* text [, uint8_t length] ) // Multilang: void gb.gui.keyboard( const MultiLang* title , char* text [, uint8_t length] [, uint8_t numLang] )
gb.gui.keyboard displays a keyboard in which you can enter a message. You can also provide a default text.
none
#include <Gamebuino-Meta.h>void setup() { gb.begin();
// ask the player for their favorite animal char text[12] = "Foxies"; gb.gui.keyboard("Favorite Animal?", text);
gb.display.clear(); gb.display.println("You entered:"); gb.display.print(text); }
void loop() { while(!gb.update()); }