PAD:SDL: Remove fallback code for unsupported SDL versions

This commit is contained in:
TellowKrinkle authored and tellowkrinkle committed 2022-01-01 16:36:15 -06:00
1 parent 5f168b1a1e
commit aaed932a67
1 file changed
-6
-6
View File
@@ -129,11 +129,7 @@ JoystickInfo::~JoystickInfo()
{
if (m_controller != nullptr)
{
#if SDL_MINOR_VERSION >= 4
// Version before 2.0.4 are bugged, JoystickClose crashes randomly
// Note: GameControllerClose calls JoystickClose)
SDL_GameControllerClose(m_controller);
#endif
}
}
@@ -198,9 +194,7 @@ JoystickInfo::JoystickInfo(int id)
"Please post the new generated mapping to (https://github.com/gabomdq/SDL_GameControllerDB) so it can be added to the database.",
m_device_name.c_str(), guid);
#if SDL_MINOR_VERSION >= 4 // Version before 2.0.4 are bugged, JoystickClose crashes randomly
SDL_JoystickClose(joy);
#endif
return;
}