From f633915443b2df242a94035c4cf57a6885a6686e Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 5 Apr 2023 02:10:56 +0300 Subject: [PATCH] fix build after commit 22685556e5d9fc2e2a7023075e51b69fe770e64a. --- src/joystick/hidapi/SDL_hidapijoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c index baf085d69..fcbfaa44a 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick.c +++ b/src/joystick/hidapi/SDL_hidapijoystick.c @@ -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. * 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; }