ref: 6edd007a9ceeb10e7d98d758e3e24ccdde498e5e
parent: 11b8fc3d0674ed92c52dc7e94ea72dd7e382a07f
author: Simon Howard <fraggle@gmail.com>
date: Tue Sep 19 20:06:21 EDT 2006
Add "Enable mouse" checkbox to mouse config dialog. Reorder options. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 628
--- 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 @@
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 @@
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));
-
-
}