Fixes the rawinput not working without in_restart bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3339 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-08-04 23:56:43 +00:00
parent 3fb15701b1
commit fd713df2e1

View file

@ -1167,6 +1167,9 @@ void IN_StartupMouse (void)
mouseinitialized = true; mouseinitialized = true;
//make sure it can't get stuck
IN_DeactivateMouse ();
#ifdef AVAIL_DINPUT #ifdef AVAIL_DINPUT
if (in_dinput.value) if (in_dinput.value)
{ {
@ -1348,6 +1351,8 @@ IN_Shutdown
*/ */
void IN_Shutdown (void) void IN_Shutdown (void)
{ {
mouseinitialized = false;
IN_DeactivateMouse (); IN_DeactivateMouse ();
IN_ShowMouse (); IN_ShowMouse ();