Don't capture the mouse initially on debug builds
This commit is contained in:
parent
4caa7ec749
commit
83b81aad4b
1 changed files with 5 additions and 1 deletions
|
|
@ -615,8 +615,12 @@ void Session::exec()
|
||||||
SDL_SetWindowSize(m_Window, width, height);
|
SDL_SetWindowSize(m_Window, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Capture the mouse
|
#ifndef QT_DEBUG
|
||||||
|
// Capture the mouse by default on release builds only.
|
||||||
|
// This prevents the mouse from becoming trapped inside
|
||||||
|
// Moonlight when it's halted at a debug break.
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Disable the screen saver
|
// Disable the screen saver
|
||||||
SDL_DisableScreenSaver();
|
SDL_DisableScreenSaver();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue