diff --git a/app/streaming/input.cpp b/app/streaming/input.cpp index 6e919450..5ea555f4 100644 --- a/app/streaming/input.cpp +++ b/app/streaming/input.cpp @@ -23,6 +23,9 @@ const int SdlInputHandler::k_ButtonMap[] = { SdlInputHandler::SdlInputHandler(bool multiController) : m_MultiController(multiController) { + // Allow gamepad input when the app doesn't have focus + SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); + // We need to reinit this each time, since you only get // an initial set of gamepad arrival events once per init. SDL_assert(!SDL_WasInit(SDL_INIT_GAMECONTROLLER));