fix mouse input again.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4302 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-04-08 08:23:43 +00:00
parent 944c675b2e
commit cc0e24142a
1 changed files with 4 additions and 1 deletions

View File

@ -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: