We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f514ab5 commit dfe1c4fCopy full SHA for dfe1c4f
src/main.c
@@ -382,6 +382,8 @@ int main(int argc, char** argv) {
382
if (g_config.audio_samples <= 0 || ((g_config.audio_samples & (g_config.audio_samples - 1)) != 0))
383
g_config.audio_samples = kDefaultSamples;
384
385
+ SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");
386
+
387
// set up SDL
388
if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER) != 0) {
389
printf("Failed to init SDL: %s\n", SDL_GetError());
0 commit comments