From 8e62f9e0a223deb5a48a67f401c6433257d6a936 Mon Sep 17 00:00:00 2001 From: frank Date: Fri, 15 Dec 2023 00:54:20 -0500 Subject: [PATCH] initialize game controller interface at startup --- src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game.cpp b/src/Game.cpp index 73939b1..30e3880 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -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();