Hide mouse cursor after streaming on Steam Link

This commit is contained in:
Cameron Gutman
2019-05-19 17:43:46 -07:00
parent 4467c2e6ad
commit 30cfa2607d

View File

@@ -162,6 +162,14 @@ SdlInputHandler::~SdlInputHandler()
// Return background event handling to off
SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "0");
#ifdef STEAM_LINK
// Hide SDL's cursor on Steam Link after quitting the stream.
// FIXME: We should also do this for other situations where SDL
// and Qt will draw their own mouse cursors like KMSDRM or RPi
// video backends.
SDL_ShowCursor(SDL_DISABLE);
#endif
}
void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)