Skip to content

Commit

Permalink
Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization
Browse files Browse the repository at this point in the history
(cherry picked from commit 34392db)
  • Loading branch information
slouken committed Nov 14, 2023
1 parent 76cc24e commit cc7c0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/iphoneos/SDL_mfijoystick.m
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ static SDL_bool IOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMappi
#if defined(SDL_JOYSTICK_MFI) && defined(__MACOSX__)
SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device)
{
if (!connectObserver) {
if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_MFI, SDL_TRUE)) {
return SDL_FALSE;
}

Expand Down

0 comments on commit cc7c0a2

Please sign in to comment.