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);
|
sb::Log::log(log_message);
|
||||||
/* allows use of our own main function (?) see SDL_SetMainReady.html */
|
/* allows use of our own main function (?) see SDL_SetMainReady.html */
|
||||||
SDL_SetMainReady();
|
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");
|
sb::Log::sdl_error("SDL could not initialize");
|
||||||
flag_to_end();
|
flag_to_end();
|
||||||
|
|
Loading…
Reference in New Issue