Auto-lock the cursor in single display borderless windowed scenarios
This commit is contained in:
parent
4ec549650d
commit
9bcc6291be
2 changed files with 11 additions and 2 deletions
|
|
@ -2351,6 +2351,13 @@ void Session::execInternal()
|
|||
case SDL_FINGERUP:
|
||||
m_InputHandler->handleTouchFingerEvent(&event.tfinger);
|
||||
break;
|
||||
case SDL_DISPLAYEVENT:
|
||||
switch (event.display.event) {
|
||||
case SDL_DISPLAYEVENT_CONNECTED:
|
||||
case SDL_DISPLAYEVENT_DISCONNECTED:
|
||||
m_InputHandler->updatePointerRegionLock();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue