Add firstrun instructions to software keyboard

Adresses #601
This commit is contained in:
d0k3 2021-02-23 16:10:10 +01:00
parent 3f7eb872b8
commit 30c5e1fd67

View File

@ -226,6 +226,13 @@ bool ShowKeyboard(char* inputstr, const u32 max_size, const char *format, ...) {
TouchBox swkbd_numpad[32];
TouchBox* textbox = swkbd_alphabet; // always use this textbox
static bool show_instr = true;
static const char* instr = "Keyboard Controls:\n \n\x1B/\x1A - Move cursor\nR - Caps / Capslock\nX - Delete char\nY - Insert char\nA - Submit\nB - Cancel\n \nSELECT switches to\nclassic prompt";
if (show_instr) {
ShowPrompt(false, instr);
show_instr = false;
}
// generate keyboards
if (!BuildKeyboard(swkbd_alphabet, keys_alphabet, layout_alphabet)) return false;
if (!BuildKeyboard(swkbd_special, keys_special, layout_special)) return false;