diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-18 23:39:20 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-11-18 23:39:20 +0000 |
commit | b7cfcffd7a156e19dfa9882d67426f4fa6edef57 (patch) | |
tree | 563fc081f1060fc6ba2034d271f8039b8ea4aa24 /src | |
parent | aac54546a9a22a1d3e650ec9efeb631a461e80c8 (diff) | |
download | mana-b7cfcffd7a156e19dfa9882d67426f4fa6edef57.tar.gz mana-b7cfcffd7a156e19dfa9882d67426f4fa6edef57.tar.bz2 mana-b7cfcffd7a156e19dfa9882d67426f4fa6edef57.tar.xz mana-b7cfcffd7a156e19dfa9882d67426f4fa6edef57.zip |
Fixed initialization of joystick enabled checkbox.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/setup_joystick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/setup_joystick.cpp b/src/gui/setup_joystick.cpp index d9212728..685d88cf 100644 --- a/src/gui/setup_joystick.cpp +++ b/src/gui/setup_joystick.cpp @@ -42,7 +42,7 @@ Setup_Joystick::Setup_Joystick(): mCalibrateLabel->setPosition(10, 25); mCalibrateButton->setPosition(10, 30 + mCalibrateLabel->getHeight()); - mOriginalJoystickEnabled = (joystick ? joystick->isEnabled() : false); + mOriginalJoystickEnabled = (int)config.getValue("joystickEnabled", 0) != 0; mJoystickEnabled->setMarked(mOriginalJoystickEnabled); mJoystickEnabled->setEventId("joystickEnabled"); |