From 2b96bb8be90fb851e9392e69b3ad5c5c1c3cc21d Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:43:35 -0500 Subject: [PATCH] allow sdl background controller input --- src/main/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/main.cpp b/src/main/main.cpp index e91ed39..1bceffc 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -47,6 +47,7 @@ ultramodern::gfx_callbacks_t::gfx_data_t create_gfx() { SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); SDL_SetHint(SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH, "1"); + SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) > 0) { exit_error("Failed to initialize SDL2: %s\n", SDL_GetError()); }