diff --git a/src/modules/joystick/sdl/JoystickModule.cpp b/src/modules/joystick/sdl/JoystickModule.cpp index a6af78703..87435b266 100644 --- a/src/modules/joystick/sdl/JoystickModule.cpp +++ b/src/modules/joystick/sdl/JoystickModule.cpp @@ -499,7 +499,11 @@ void JoystickModule::loadGamepadMappings(const std::string &mappings) std::string platform = mapping.substr(pstartpos, pendpos - pstartpos); if (platform.compare(SDL_GetPlatform()) != 0) + { + // Ignore the mapping but still acknowledge that it is one. + success = true; continue; + } pstartpos -= strlen("platform:"); mapping.erase(pstartpos, pendpos - pstartpos + 1);