Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization

main
Sam Lantinga 2023-11-14 10:57:47 -08:00
parent 708f18d49e
commit 34392db9c3
1 changed files with 1 additions and 1 deletions

View File

@ -1745,7 +1745,7 @@ static SDL_bool IOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMappi
#if defined(SDL_JOYSTICK_MFI) && defined(__MACOS__)
SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device)
{
if (!connectObserver) {
if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_MFI, SDL_TRUE)) {
return SDL_FALSE;
}