aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 72987a3..fd8ed4d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -138,7 +138,7 @@ int main(int argc, char *argv[])
}
// attempt to initialize SDL
- if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) != 0)
+ if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_JOYSTICK) != 0)
UserError(std::string("SDL was not able to initialize! Error: ") + SDL_GetError());
atexit(SDL_Quit);