diff options
author | Simon Howard | 2006-09-20 00:06:21 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-20 00:06:21 +0000 |
commit | 6edd007a9ceeb10e7d98d758e3e24ccdde498e5e (patch) | |
tree | 8f2b21aeba6526e9410c6e64d57127937332c6d7 | |
parent | 11b8fc3d0674ed92c52dc7e94ea72dd7e382a07f (diff) | |
download | chocolate-doom-6edd007a9ceeb10e7d98d758e3e24ccdde498e5e.tar.gz chocolate-doom-6edd007a9ceeb10e7d98d758e3e24ccdde498e5e.tar.bz2 chocolate-doom-6edd007a9ceeb10e7d98d758e3e24ccdde498e5e.zip |
Add "Enable mouse" checkbox to mouse config dialog. Reorder options.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 628
-rw-r--r-- | setup/mouse.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/setup/mouse.c b/setup/mouse.c index f214004c..86a5ad74 100644 --- a/setup/mouse.c +++ b/setup/mouse.c @@ -24,6 +24,8 @@ #include "txt_mouseinput.h" +int use_mouse = 1; + int novert; int speed; int accel; @@ -74,6 +76,14 @@ void ConfigMouse(void) window = TXT_NewWindow("Mouse configuration"); + TXT_AddWidget(window, TXT_NewCheckBox("Enable mouse", &use_mouse)); + + TXT_AddWidget(window, + TXT_NewInvertedCheckBox("Allow vertical mouse movement", + &novert)); + TXT_AddWidget(window, TXT_NewCheckBox("Grab mouse in windowed mode", + &grabmouse)); + TXT_AddWidget(window, TXT_NewSeparator("Mouse motion")); table = TXT_NewTable(2); @@ -98,15 +108,5 @@ void ConfigMouse(void) AddMouseControl(table, "Strafe on", &mouseb_strafe); TXT_AddWidget(window, table); - - TXT_AddWidget(window, TXT_NewSeparator("Misc.")); - - TXT_AddWidget(window, - TXT_NewInvertedCheckBox("Allow vertical mouse movement", - &novert)); - TXT_AddWidget(window, TXT_NewCheckBox("Grab mouse in windowed mode", - &grabmouse)); - - } |