fix build after commit 22685556e5.

This commit is contained in:
Ozkan Sezer 2023-04-05 02:10:56 +03:00
parent 57043825ba
commit f633915443

View file

@ -143,7 +143,7 @@ SDL_bool HIDAPI_SupportsPlaystationDetection(Uint16 vendor, Uint16 product)
/* If we already know the controller is a different type, don't try to detect it. /* If we already know the controller is a different type, don't try to detect it.
* This fixes a hang with the HORIPAD for Nintendo Switch (0x0f0d/0x00c1) * This fixes a hang with the HORIPAD for Nintendo Switch (0x0f0d/0x00c1)
*/ */
if (SDL_GetGamepadTypeFromVIDPID(vendor, product, NULL, SDL_FALSE) != SDL_GAMEPAD_TYPE_UNKNOWN) { if (SDL_GetJoystickGameControllerTypeFromVIDPID(vendor, product, NULL, SDL_FALSE) != SDL_CONTROLLER_TYPE_UNKNOWN) {
return SDL_FALSE; return SDL_FALSE;
} }