SDL: Use SDL_SetWindowMouseRect to confine the mouse area
This commit is contained in:
parent
0b011e9e44
commit
c6836c9b77
5 changed files with 40 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue