From 030b38de23f85b129e357ed97e2a58e21391fe92 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 14 Dec 2007 22:23:13 +0000 Subject: Don't grab the mouse if the mouse is disabled by -nomouse or through use_mouse in the configuration file (thanks MikeRS). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 990 --- src/i_video.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/i_video.c b/src/i_video.c index fe5aca8d..93548498 100644 --- a/src/i_video.c +++ b/src/i_video.c @@ -171,6 +171,11 @@ static boolean MouseShouldBeGrabbed() if (fullscreen != FULLSCREEN_OFF) return true; + // Don't grab the mouse if mouse input is disabled + + if (!usemouse || nomouse) + return false; + // Drone players don't need mouse focus if (drone) -- cgit v1.2.3