diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index d05a9212a..0ab56ce95 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -1114,7 +1114,7 @@ static const char *LINUX_JoystickGetDevicePath(int device_index) static int LINUX_JoystickGetDevicePlayerIndex(int device_index) { - return GetJoystickByDevIndex(device_index)->steam_virtual_gamepad_slot; + return JoystickByDevIndex(device_index)->steam_virtual_gamepad_slot; } static void LINUX_JoystickSetDevicePlayerIndex(int device_index, int player_index)