SDL: Use SDL_SetWindowMouseRect to confine the mouse area

This commit is contained in:
Cameron Cawley 2021-11-11 19:21:49 +00:00 committed by Eugene Sandulenko
parent 0b011e9e44
commit c6836c9b77
5 changed files with 40 additions and 0 deletions

View file

@ -282,6 +282,10 @@ void SdlGraphicsManager::setSystemMousePosition(const int x, const int y) {
}
}
void SdlGraphicsManager::notifyActiveAreaChanged() {
_window->setMouseRect(_activeArea.drawRect);
}
void SdlGraphicsManager::handleResizeImpl(const int width, const int height) {
_forceRedraw = true;
}