diff options
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/SDL')
| -rw-r--r-- | Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp index 24f934149c..1ccf3f460b 100644 --- a/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp +++ b/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp @@ -3,6 +3,7 @@ #ifdef CIFACE_USE_SDL #include "SDL.h" +#include <StringUtil.h> #ifdef _WIN32 #if SDL_VERSION_ATLEAST(1, 3, 0) @@ -209,7 +210,7 @@ bool Joystick::UpdateOutput() std::string Joystick::GetName() const { - return SDL_JoystickName( m_index ); + return StripSpaces(SDL_JoystickName(m_index)); } std::string Joystick::GetSource() const |
