forked from mirror/openmw-tes3mp
Pause game when minimised on Windows
This commit is contained in:
parent
7f634514a8
commit
5049fe4320
1 changed files with 2 additions and 0 deletions
|
@ -221,10 +221,12 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
|
|||
case SDL_WINDOWEVENT_CLOSE:
|
||||
break;
|
||||
case SDL_WINDOWEVENT_SHOWN:
|
||||
case SDL_WINDOWEVENT_RESTORED:
|
||||
if (mWindowListener)
|
||||
mWindowListener->windowVisibilityChange(true);
|
||||
break;
|
||||
case SDL_WINDOWEVENT_HIDDEN:
|
||||
case SDL_WINDOWEVENT_MINIMIZED:
|
||||
if (mWindowListener)
|
||||
mWindowListener->windowVisibilityChange(false);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue