summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/gui/setup_joystick.cpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0aa047dc..7ef70afd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-19 Bjørn Lindeijer <bjorn@lindeijer.nl>
+
+ * src/gui/setup_joystick.cpp: Fixed joystick option to show enabled
+ when the joystick is enabled.
+
2006-11-17 Björn Steinbrink <B.Steinbrink@gmx.de>
* data/graphics/sprites/CMakeLists.txt: Fixed some filenames.
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");