Use mouse capture for Win32 instead of our global mouse state hack

This commit is contained in:
Cameron Gutman
2021-02-07 12:38:57 -06:00
parent b4edde6f90
commit 36dc0f3e3c
4 changed files with 16 additions and 33 deletions

View File

@@ -1321,6 +1321,9 @@ void Session::exec(int displayOriginX, int displayOriginY)
case SDL_CODE_SHOW_CURSOR:
SDL_ShowCursor(SDL_ENABLE);
break;
case SDL_CODE_UNCAPTURE_MOUSE:
SDL_CaptureMouse(SDL_FALSE);
break;
case SDL_CODE_FLUSH_WINDOW_EVENT_BARRIER:
m_FlushingWindowEventsRef--;
break;