summaryrefslogtreecommitdiff
path: root/src/joystick.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-10 02:53:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-10 02:53:04 +0300
commitab165386008a2b19e997d91fffe634d3145d27b8 (patch)
tree4ce84f1bbf8432aa430410acd1a143b5a0821a1a /src/joystick.cpp
parentdd010b773630776a2152d09e27d6f1e980d60400 (diff)
downloadmanaverse-ab165386008a2b19e997d91fffe634d3145d27b8.tar.gz
manaverse-ab165386008a2b19e997d91fffe634d3145d27b8.tar.bz2
manaverse-ab165386008a2b19e997d91fffe634d3145d27b8.tar.xz
manaverse-ab165386008a2b19e997d91fffe634d3145d27b8.zip
Prevent possible joystick enable if it was disabled and joystick
device selection was changed.
Diffstat (limited to 'src/joystick.cpp')
-rw-r--r--src/joystick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/joystick.cpp b/src/joystick.cpp
index 52d2f415b..29e16dff4 100644
--- a/src/joystick.cpp
+++ b/src/joystick.cpp
@@ -129,12 +129,12 @@ void Joystick::setNumber(int n)
{
SDL_JoystickClose(mJoystick);
mNumber = n;
+ open();
}
else
{
mNumber = n;
}
- open();
}
void Joystick::update()