diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/gamepads/darwin/qdarwingamepadbackend.mm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/gamepads/darwin/qdarwingamepadbackend.mm b/src/plugins/gamepads/darwin/qdarwingamepadbackend.mm index e755f09..1298c00 100644 --- a/src/plugins/gamepads/darwin/qdarwingamepadbackend.mm +++ b/src/plugins/gamepads/darwin/qdarwingamepadbackend.mm @@ -105,11 +105,8 @@ break; } } -#if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_11) || QT_IOS_PLATFORM_SDK_EQUAL_OR_ABOVE(__IPHONE_9_0) || defined(Q_OS_TVOS) + controller.playerIndex = GCControllerPlayerIndex(index); -#else - controller.playerIndex = index; -#endif QMetaObject::invokeMethod(backend, "darwinGamepadAdded", Qt::AutoConnection, Q_ARG(int, index)); |