initialize game controller interface at startup

This commit is contained in:
ohsqueezy 2023-12-15 00:54:20 -05:00
parent 8184a62a54
commit 8e62f9e0a2
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ Game::Game()
sb::Log::log(log_message);
/* allows use of our own main function (?) see SDL_SetMainReady.html */
SDL_SetMainReady();
if (SDL_Init(SDL_INIT_VIDEO) < 0)
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) < 0)
{
sb::Log::sdl_error("SDL could not initialize");
flag_to_end();