diff options
author | Simon Howard | 2010-07-10 15:27:52 +0000 |
---|---|---|
committer | Simon Howard | 2010-07-10 15:27:52 +0000 |
commit | bb3f64f28173bba0b243957c63679d2ec63dce5c (patch) | |
tree | de874ebcd1bde96c20691417c0cee0224990a57a /setup | |
parent | 373a8dd0c10c1d9f3be29cd3546819236b860ab8 (diff) | |
download | chocolate-doom-bb3f64f28173bba0b243957c63679d2ec63dce5c.tar.gz chocolate-doom-bb3f64f28173bba0b243957c63679d2ec63dce5c.tar.bz2 chocolate-doom-bb3f64f28173bba0b243957c63679d2ec63dce5c.zip |
Add key binding to change demo recording quit key.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1939
Diffstat (limited to 'setup')
-rw-r--r-- | setup/configfile.c | 1 | ||||
-rw-r--r-- | setup/keyboard.c | 2 | ||||
-rw-r--r-- | setup/keyboard.h | 1 |
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); |