Merge pull request #1573 from LuigiBlood/NRagePlugintest

[N-Rage] Mouse Lock Up fix when ending emulation when it's locked?
This commit is contained in:
zilmar 2019-01-25 06:16:11 +10:30 committed by GitHub
commit e720f3688c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 )
{