summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rw-r--r--setup/configfile.c1
-rw-r--r--setup/keyboard.c2
-rw-r--r--setup/keyboard.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/setup/configfile.c b/setup/configfile.c
index 99ec2e03..9f0e5de5 100644
--- a/setup/configfile.c
+++ b/setup/configfile.c
@@ -336,6 +336,7 @@ static default_t extra_defaults_list[] =
{"key_weapon7", &key_weapon7, DEFAULT_KEY, 0, 0},
{"key_weapon8", &key_weapon8, DEFAULT_KEY, 0, 0},
{"key_message_refresh", &key_message_refresh, DEFAULT_KEY, 0, 0},
+ {"key_demo_quit", &key_demo_quit, DEFAULT_KEY, 0, 0},
};
static default_collection_t extra_defaults =
diff --git a/setup/keyboard.c b/setup/keyboard.c
index 79cb90e7..b402d10c 100644
--- a/setup/keyboard.c
+++ b/setup/keyboard.c
@@ -91,6 +91,7 @@ int key_weapon7 = '7';
int key_weapon8 = '8';
int key_message_refresh = KEY_ENTER;
+int key_demo_quit = 'q';
int vanilla_keyboard_mapping = 1;
@@ -273,6 +274,7 @@ static void OtherKeysDialog(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused))
AddKeyControl(table, "Decrease screen size", &key_menu_decscreen);
AddKeyControl(table, "Display last message", &key_message_refresh);
+ AddKeyControl(table, "Finish recording demo", &key_demo_quit);
TXT_AddWidgets(table, TXT_NewStrut(0, 1),
TXT_NewStrut(0, 1),
diff --git a/setup/keyboard.h b/setup/keyboard.h
index fa3c0db3..62addc8f 100644
--- a/setup/keyboard.h
+++ b/setup/keyboard.h
@@ -91,6 +91,7 @@ extern int key_weapon7;
extern int key_weapon8;
extern int key_message_refresh;
+extern int key_demo_quit;
void ConfigKeyboard(void);