Only capture the mouse by default for full screen streaming

This commit is contained in:
Cameron Gutman 2018-08-11 14:19:42 -07:00
commit 917f6e5ee9

View file

@ -742,7 +742,9 @@ void Session::exec()
// Capture the mouse by default on release builds only. // Capture the mouse by default on release builds only.
// This prevents the mouse from becoming trapped inside // This prevents the mouse from becoming trapped inside
// Moonlight when it's halted at a debug break. // Moonlight when it's halted at a debug break.
SDL_SetRelativeMouseMode(SDL_TRUE); if (m_Preferences.fullScreen) {
SDL_SetRelativeMouseMode(SDL_TRUE);
}
#endif #endif
// Stop text input. SDL enables it by default // Stop text input. SDL enables it by default