forked from teamnwah/openmw-tes3coop
Fix initialization of InputWrapper::mWindowHasFocus
This commit is contained in:
parent
6ee7c61667
commit
78a733a12c
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
|
||||||
mMouseInWindow(true)
|
mMouseInWindow(true)
|
||||||
{
|
{
|
||||||
_setupOISKeys();
|
_setupOISKeys();
|
||||||
|
|
||||||
|
Uint32 flags = SDL_GetWindowFlags(mSDLWindow);
|
||||||
|
mWindowHasFocus = (flags & SDL_WINDOW_INPUT_FOCUS);
|
||||||
|
mMouseInWindow = (flags & SDL_WINDOW_MOUSE_FOCUS);
|
||||||
}
|
}
|
||||||
|
|
||||||
InputWrapper::~InputWrapper()
|
InputWrapper::~InputWrapper()
|
||||||
|
|
Loading…
Reference in a new issue