Skip to content
Snippets Groups Projects
Commit f9c9e082 authored by Eidolon's avatar Eidolon
Browse files

Revert "sdl: I can't believe it's more version-guards"

This reverts commit fdb6f2af.
parent 5827a19b
Branches
Tags
1 merge request!1926Revert Gamepads for now
......@@ -103,7 +103,6 @@ INT32 I_NumGamepads(void)
#define USB_PRODUCT_XBOX_SERIES_X_POWERA_FUSION_PRO2 0x4001
#define USB_PRODUCT_XBOX_SERIES_X_POWERA_SPECTRA 0x4002
#if SDL_VERSION_ATLEAST(2,0,6)
static boolean IsJoystickXboxOneElite(Uint16 vendor_id, Uint16 product_id)
{
if (vendor_id == USB_VENDOR_MICROSOFT) {
......@@ -142,7 +141,6 @@ static boolean IsJoystickXboxSeriesXS(Uint16 vendor_id, Uint16 product_id)
return false;
}
#endif
// Opens a controller device
static boolean Controller_OpenDevice(UINT8 which, INT32 devindex)
......@@ -887,7 +885,6 @@ boolean I_SetGamepadSmallMotorFreq(UINT8 which, fixed_t freq)
void I_SetGamepadRumblePaused(UINT8 which, boolean pause)
{
#if SDL_VERSION_ATLEAST(2,0,9)
if (!I_RumbleSupported() || which >= NUM_GAMEPADS)
return;
......@@ -918,11 +915,6 @@ void I_SetGamepadRumblePaused(UINT8 which, boolean pause)
}
controller->info->rumble.paused = pause;
#else
(void)which;
(void)pause;
return;
#endif
}
boolean I_GetGamepadRumbleSupported(UINT8 which)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment