diff --git a/stepmania/src/RageInput.cpp b/stepmania/src/RageInput.cpp index 27ad8239d1..f31109ecde 100644 --- a/stepmania/src/RageInput.cpp +++ b/stepmania/src/RageInput.cpp @@ -45,12 +45,20 @@ RageInput::RageInput() for( int i=0; iInfo(" %d: '%s' Error opening: %s", + i, SDL_JoystickName(i), SDL_GetError()); + continue; + } + LOG->Info( " %d: '%s' axes: %d, hats: %d, buttons: %d", i, SDL_JoystickName(i), SDL_JoystickNumAxes(pJoystick), SDL_JoystickNumHats(pJoystick), SDL_JoystickNumButtons(pJoystick) ); + /* For some weird reason, we won't get any joystick events at all * if we don't keep the joystick open. (Why? The joystick event * API is completely separate from the SDL_Joystick polling API ...) */