Commit 62cbd84e authored by Steven Fuller's avatar Steven Fuller

readded the mouse delta clearing that disappeared long ago.

parent 744ad325
...@@ -615,7 +615,9 @@ void CheckKeys() ...@@ -615,7 +615,9 @@ void CheckKeys()
IN_ClearKeysDown(); IN_ClearKeysDown();
SD_MusicOn(); SD_MusicOn();
Paused = false; IN_GetMouseDelta(NULL, NULL); // Clear accumulated mouse movement
Paused = false;
return; return;
} }
...@@ -669,6 +671,8 @@ void CheckKeys() ...@@ -669,6 +671,8 @@ void CheckKeys()
playstate = ex_abort; playstate = ex_abort;
lasttimecount = get_TimeCount(); lasttimecount = get_TimeCount();
IN_GetMouseDelta(NULL, NULL); // Clear accumulated mouse movement
return; return;
} }
...@@ -681,6 +685,9 @@ void CheckKeys() ...@@ -681,6 +685,9 @@ void CheckKeys()
SETFONTCOLOR(0,15); SETFONTCOLOR(0,15);
DebugKeys(); DebugKeys();
lasttimecount = get_TimeCount(); lasttimecount = get_TimeCount();
IN_GetMouseDelta(NULL, NULL); // Clear accumulated mouse movement
return; return;
} }
...@@ -1188,7 +1195,9 @@ void PlayLoop() ...@@ -1188,7 +1195,9 @@ void PlayLoop()
memset (buttonstate,0,sizeof(buttonstate)); memset (buttonstate,0,sizeof(buttonstate));
ClearPaletteShifts(); ClearPaletteShifts();
IN_GetMouseDelta(NULL, NULL); // Clear accumulated mouse movement
if (demoplayback) if (demoplayback)
IN_StartAck(); IN_StartAck();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment