shithub: choc

ref: 87cbe9dbbe6a0921f89e08d79b87fad7aec37cd8
dir: /setup/keyboard.c/

View raw version
#include "textscreen.h"

int dummy;

void ConfigKeyboard(void)
{
    txt_window_t *window;
    txt_table_t *table;

    window = TXT_NewWindow("Keyboard configuration");

    table = TXT_NewTable(2);
    TXT_AddWidget(window, table);

    TXT_AddWidget(table, TXT_NewLabel("Move Forward"));
    TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
    TXT_AddWidget(table, TXT_NewLabel("Move Backward"));
    TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
    TXT_AddWidget(table, TXT_NewLabel("Turn Left"));
    TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
    TXT_AddWidget(table, TXT_NewLabel("Turn Right"));
}