diff --git a/src/SFML/Window/Win32/JoystickImpl.cpp b/src/SFML/Window/Win32/JoystickImpl.cpp index 4834bb891..0d8e5ce51 100644 --- a/src/SFML/Window/Win32/JoystickImpl.cpp +++ b/src/SFML/Window/Win32/JoystickImpl.cpp @@ -274,7 +274,10 @@ void JoystickImpl::setLazyUpdates(bool status) void JoystickImpl::updateConnections() { if (directInput) - return updateConnectionsDInput(); + { + updateConnectionsDInput(); + return; + } for (unsigned int i = 0; i < Joystick::Count; ++i) {