From 6edd007a9ceeb10e7d98d758e3e24ccdde498e5e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 20 Sep 2006 00:06:21 +0000 Subject: Add "Enable mouse" checkbox to mouse config dialog. Reorder options. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 628 --- setup/mouse.c | 20 ++++++++++---------- 1 file 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)); - - } -- cgit v1.2.3