From 681f67d353b020007a98f051471fa2b982b11cdf Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 14 Jun 2023 00:25:50 +0300 Subject: [PATCH] fixed build after commit d2372c853843def01b7adb9872cbb89b0d6079ec. --- src/joystick/linux/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index 24c6a009c..0caffd7f8 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -2152,7 +2152,7 @@ static SDL_bool LINUX_JoystickGetGamepadMapping(int device_index, SDL_GamepadMap xpadneo has a note about this in the driver code: https://github.com/atar-axis/xpadneo/blob/master/hid-xpadneo/src/hid-xpadneo.c#L1137 */ - if (SDL_IsJoystickXboxOneElite(SDL_GetJoystickVendor(joystick), SDL_GetJoystickProduct(joystick))) { + if (SDL_IsJoystickXboxOneElite(SDL_JoystickGetVendor(joystick), SDL_JoystickGetProduct(joystick))) { int i; unsigned int paddle_index = 0; SDL_InputMapping *paddles[4] = {