Skip to content

Commit

Permalink
Init game controller on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 6, 2014
1 parent f79ead8 commit a07e939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supertux/main.cpp
Expand Up @@ -391,7 +391,7 @@ Main::parse_commandline(int argc, char** argv)
void
Main::init_sdl()
{
if(SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) {
if(SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) < 0) {
std::stringstream msg;
msg << "Couldn't initialize SDL: " << SDL_GetError();
throw std::runtime_error(msg.str());
Expand Down

0 comments on commit a07e939

Please sign in to comment.