ref: 4cf2c7e2cffea6ba4b78dc62d16e9e117c7b0aa8
parent: 84e1b1ac112714d920fa9a2d45728d4c7865c4e3
author: Simon Howard <fraggle@gmail.com>
date: Mon Sep 25 19:16:49 EDT 2006
Add "Always run" checkbox to keyboard options. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 670
--- a/setup/keyboard.c
+++ b/setup/keyboard.c
@@ -33,6 +33,7 @@
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,
@@ -100,6 +101,9 @@
AddKeyControl(table, "Fire", &key_fire);
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());
}