[N-Rage] Mouse Lock Up fix when ending emulation when it's locked?

This commit is contained in:
LuigiBlood 2018-02-26 02:12:06 +01:00
parent 28741a0367
commit 674afb454b
1 changed files with 3 additions and 0 deletions

View File

@ -499,7 +499,10 @@ EXPORT void CALL RomClosed(void)
EnterCriticalSection( &g_critical );
if (g_sysMouse.didHandle)
{
g_sysMouse.didHandle->Unacquire();
g_sysMouse.didHandle->SetCooperativeLevel(g_strEmuInfo.hMainWindow, DIB_KEYBOARD); // unlock the mouse, just in case
}
for( i = 0; i < ARRAYSIZE(g_pcControllers); ++i )
{