From 609947cd66b4c21c13ecbb8b64667c2215bc647c Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 3 Apr 2022 17:17:11 -0700 Subject: [PATCH] aurora: Allow background input --- aurora/lib/aurora.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aurora/lib/aurora.cpp b/aurora/lib/aurora.cpp index 75506f7b1..4a33c353c 100644 --- a/aurora/lib/aurora.cpp +++ b/aurora/lib/aurora.cpp @@ -237,6 +237,8 @@ void app_run(std::unique_ptr app, Icon icon, int argc, char** argv) SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); #endif SDL_SetHint(SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE, "1"); + /* TODO: Make this an option rather than hard coding it */ + SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,"1"); Uint32 flags = SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_RESIZABLE; switch (gpu::preferredBackendType) {