From 674afb454bbac6b98ad77d94f35edaf7e1c83048 Mon Sep 17 00:00:00 2001 From: LuigiBlood Date: Mon, 26 Feb 2018 02:12:06 +0100 Subject: [PATCH] [N-Rage] Mouse Lock Up fix when ending emulation when it's locked? --- Source/nragev20/NRagePluginV2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/nragev20/NRagePluginV2.cpp b/Source/nragev20/NRagePluginV2.cpp index d4b0e8bab..684000171 100644 --- a/Source/nragev20/NRagePluginV2.cpp +++ b/Source/nragev20/NRagePluginV2.cpp @@ -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 ) {