projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f79ead8
)
Init game controller on startup
author
Ingo Ruhnke
<grumbel@gmail.com>
Wed, 6 Aug 2014 02:30:26 +0000
(
04:30
+0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Wed, 6 Aug 2014 02:33:34 +0000
(
04:33
+0200)
src/supertux/main.cpp
patch
|
blob
|
history
diff --git
a/src/supertux/main.cpp
b/src/supertux/main.cpp
index
ca02a0f
..
7b80c26
100644
(file)
--- 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());