From 4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 25 Sep 2006 23:16:49 +0000 Subject: Add "Always run" checkbox to keyboard options. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 670 --- setup/keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) 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()); } -- cgit v1.2.3