diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-10 02:53:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-10 02:53:04 +0300 |
commit | ab165386008a2b19e997d91fffe634d3145d27b8 (patch) | |
tree | 4ce84f1bbf8432aa430410acd1a143b5a0821a1a /src/joystick.cpp | |
parent | dd010b773630776a2152d09e27d6f1e980d60400 (diff) | |
download | ManaVerse-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.cpp | 2 |
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() |