1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include "textscreen.h"
int dummy;
void ConfigKeyboard(void)
{
txt_window_t *window;
txt_table_t *table;
window = TXT_NewWindow("Keyboard configuration");
TXT_AddWidget(window, TXT_NewSeparator("Movement"));
table = TXT_NewTable(2);
TXT_AddWidget(table, TXT_NewStrut(20, 0));
TXT_AddWidget(table, TXT_NewStrut(8, 0));
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"));
TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
TXT_AddWidget(table, TXT_NewLabel("Strafe Left"));
TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
TXT_AddWidget(table, TXT_NewLabel("Strafe Right"));
TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
TXT_AddWidget(table, TXT_NewLabel("Speed On"));
TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
TXT_AddWidget(table, TXT_NewLabel("Strafe On"));
TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
TXT_AddWidget(window, table);
TXT_AddWidget(window, TXT_NewSeparator("Action"));
table = TXT_NewTable(2);
TXT_AddWidget(table, TXT_NewStrut(20, 0));
TXT_AddWidget(table, TXT_NewStrut(8, 0));
TXT_AddWidget(table, TXT_NewLabel("Use"));
TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
TXT_AddWidget(table, TXT_NewLabel("Fire"));
TXT_AddWidget(table, TXT_NewIntInputBox(&dummy, 7));
TXT_AddWidget(window, table);
}
|