Fixed IOS_SupportedHIDDevice() returning SDL_FALSE before initialization
(cherry picked from commit34392db9c3) (cherry picked from commitcc7c0a2dab)
This commit is contained in:
1 parent
c2ebe1024b
commit
05eb08053d
1 file changed
+1
-1
@@ -1684,7 +1684,7 @@ static SDL_bool IOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMappi
|
|||||||
#if defined(SDL_JOYSTICK_MFI) && defined(__MACOSX__)
|
#if defined(SDL_JOYSTICK_MFI) && defined(__MACOSX__)
|
||||||
SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device)
|
SDL_bool IOS_SupportedHIDDevice(IOHIDDeviceRef device)
|
||||||
{
|
{
|
||||||
if (!connectObserver) {
|
if (!SDL_GetHintBoolean(SDL_HINT_JOYSTICK_MFI, SDL_TRUE)) {
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user