summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-09-25 23:16:49 +0000
committerSimon Howard2006-09-25 23:16:49 +0000
commit4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8 (patch)
tree2b2d359fd58a16d5e64412004a8a75575fa4619b
parent84e1b1ac112714d920fa9a2d45728d4c7865c4e3 (diff)
downloadchocolate-doom-4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8.tar.gz
chocolate-doom-4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8.tar.bz2
chocolate-doom-4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8.zip
Add "Always run" checkbox to keyboard options.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 670
-rw-r--r--setup/keyboard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/keyboard.c b/setup/keyboard.c
index 8555e5e5..ed2f0b25 100644
--- a/setup/keyboard.c
+++ b/setup/keyboard.c
@@ -33,6 +33,7 @@ int key_fire = KEY_RCTRL;
int key_use = ' ';
int key_strafe = KEY_RALT;
int key_speed = KEY_RSHIFT;
+int always_run = 0;
static int *allkeys[] = {&key_left, &key_right, &key_up, &key_down,
&key_strafeleft, &key_straferight, &key_fire,
@@ -101,6 +102,9 @@ void ConfigKeyboard(void)
TXT_AddWidget(window, table);
+ TXT_AddWidget(window, TXT_NewSeparator(NULL));
+ TXT_AddWidget(window, TXT_NewCheckBox("Always run", &always_run));
+
TXT_SetWindowAction(window, TXT_HORIZ_CENTER, TestConfigAction());
}