initialize game controller interface at startup
This commit is contained in:
parent
8184a62a54
commit
8e62f9e0a2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue