From cc0e24142ad92e58acc78f4c4177fdc88daeacd8 Mon Sep 17 00:00:00 2001
From: Spoike <acceptthis@users.sourceforge.net>
Date: Mon, 8 Apr 2013 08:23:43 +0000
Subject: [PATCH] fix mouse input again.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4302 fc73d0e0-1445-4013-8a0c-d673dee63da5
---
 engine/client/in_sdl.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/engine/client/in_sdl.c b/engine/client/in_sdl.c
index c7f1b91ab..5392086f4 100644
--- a/engine/client/in_sdl.c
+++ b/engine/client/in_sdl.c
@@ -299,7 +299,10 @@ void Sys_SendKeyEvents(void)
 #endif
 
 		case SDL_MOUSEMOTION:
-			IN_MouseMove(0, (SDL_ShowCursor(SDL_QUERY) == SDL_DISABLE), event.motion.xrel, event.motion.yrel, 0, 0);
+			if (!mouseactive)
+				IN_MouseMove(0, true, event.motion.x, event.motion.y, 0, 0);
+			else
+				IN_MouseMove(0, false, event.motion.xrel, event.motion.yrel, 0, 0);
 			break;
 
 		case SDL_MOUSEBUTTONDOWN: