summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-05-06 19:22:31 +0000
committerSimon Howard2006-05-06 19:22:31 +0000
commit4c28d8a8a37edea1893896f3d601771c1615c1c5 (patch)
tree26906abc1cd7d2daa357a75ce6b11808a8c54ec7 /src
parent7cc9883010e9610e3e73160365ba0b4df1d6ea46 (diff)
downloadchocolate-doom-4c28d8a8a37edea1893896f3d601771c1615c1c5.tar.gz
chocolate-doom-4c28d8a8a37edea1893896f3d601771c1615c1c5.tar.bz2
chocolate-doom-4c28d8a8a37edea1893896f3d601771c1615c1c5.zip
Respect the use_mouse value in configuration files.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 477
Diffstat (limited to 'src')
-rw-r--r--src/i_video.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/i_video.c b/src/i_video.c
index b04b6d8f..23fbd159 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_video.c 476 2006-05-06 19:14:08Z fraggle $
+// $Id: i_video.c 477 2006-05-06 19:22:31Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -175,7 +175,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_video.c 476 2006-05-06 19:14:08Z fraggle $";
+rcsid[] = "$Id: i_video.c 477 2006-05-06 19:22:31Z fraggle $";
#include <SDL.h>
#include <ctype.h>
@@ -225,6 +225,7 @@ static boolean initialised = false;
// disable mouse?
static boolean nomouse = false;
+extern int usemouse;
// if true, screens[0] is screen->pixel
@@ -521,7 +522,7 @@ void I_GetEvent(void)
break;
*/
case SDL_MOUSEBUTTONDOWN:
- if (!nomouse)
+ if (usemouse && !nomouse)
{
event.type = ev_mouse;
event.data1 = MouseButtonState();
@@ -530,7 +531,7 @@ void I_GetEvent(void)
}
break;
case SDL_MOUSEBUTTONUP:
- if (!nomouse)
+ if (usemouse && !nomouse)
{
event.type = ev_mouse;
event.data1 = MouseButtonState();
@@ -584,7 +585,7 @@ void I_StartTic (void)
{
I_GetEvent();
- if (!nomouse)
+ if (usemouse && !nomouse)
{
I_ReadMouse();
}