Use mouse capture for Win32 instead of our global mouse state hack
This commit is contained in:
parent
b4edde6f90
commit
36dc0f3e3c
4 changed files with 16 additions and 33 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue