1
0
Fork 0
forked from fte/fteqw

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

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: