aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x/gp2x.cpp
diff options
context:
space:
mode:
authorJohn Willis2008-04-17 19:27:03 +0000
committerJohn Willis2008-04-17 19:27:03 +0000
commite08a00fd0eee8a7f30f32078cddc43d515c0cf53 (patch)
treef3f057b1106c7f2addb85485234d0f64638bb5c6 /backends/platform/gp2x/gp2x.cpp
parent0336442dc41132b3c852cb24b190a7ab9e3a23f4 (diff)
downloadscummvm-rg350-e08a00fd0eee8a7f30f32078cddc43d515c0cf53.tar.gz
scummvm-rg350-e08a00fd0eee8a7f30f32078cddc43d515c0cf53.tar.bz2
scummvm-rg350-e08a00fd0eee8a7f30f32078cddc43d515c0cf53.zip
GP2X: Fix 'oops'. No point not initialising the joystick when you need to use it to have some form of input ;).
svn-id: r31552
Diffstat (limited to 'backends/platform/gp2x/gp2x.cpp')
-rw-r--r--backends/platform/gp2x/gp2x.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/gp2x/gp2x.cpp b/backends/platform/gp2x/gp2x.cpp
index 06c28d8f99..2d2b4b8078 100644
--- a/backends/platform/gp2x/gp2x.cpp
+++ b/backends/platform/gp2x/gp2x.cpp
@@ -96,11 +96,11 @@ void OSystem_GP2X::initBackend() {
int joystick_num = ConfMan.getInt("joystick_num");
uint32 sdlFlags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER | SDL_INIT_EVENTTHREAD;
- //if (ConfMan.hasKey("disable_sdl_parachute"))
- // sdlFlags |= SDL_INIT_NOPARACHUTE;
+ if (ConfMan.hasKey("disable_sdl_parachute"))
+ sdlFlags |= SDL_INIT_NOPARACHUTE;
- //if (joystick_num > -1)
- // sdlFlags |= SDL_INIT_JOYSTICK;
+ if (joystick_num > -1)
+ sdlFlags |= SDL_INIT_JOYSTICK;
if (SDL_Init(sdlFlags) == -1) {
error("Could not initialize SDL: %s", SDL_GetError());