X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=inline;f=src%2Fsupertux%2Fmain.cpp;h=7b80c2624fafef058c62914178548d004f5b720d;hb=a07e9393d64742c3d966910b38213420b5abf775;hp=ca02a0fd2e4f970bc8d1ff3bc25b6c813a53ee12;hpb=f79ead8440107e01c4845315d8532e29497b1068;p=supertux.git diff --git a/src/supertux/main.cpp b/src/supertux/main.cpp index ca02a0fd2..7b80c2624 100644 --- a/src/supertux/main.cpp +++ b/src/supertux/main.cpp @@ -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());