Skip to content

Commit

Permalink
Allow background gamepad events.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Nov 20, 2023
1 parent 5d631ca commit 7811983
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions application/platforms/application_sdl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ struct WSIPlatformSDL : GraniteWSIPlatform
return false;
}

SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1");

if (SDL_Vulkan_LoadLibrary(nullptr) < 0)
{
LOGE("Failed to load Vulkan library.\n");
Expand Down
2 changes: 1 addition & 1 deletion third_party/sdl3

0 comments on commit 7811983

Please sign in to comment.