diff options
author | Jake Petroules <jake.petroules@qt.io> | 2018-02-12 11:37:33 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2018-02-12 21:20:06 +0000 |
commit | dd85775b20df98250ccf79a1eee62de993bec891 (patch) | |
tree | 046d19dbc85f241432e6198fc14d707ae89ed154 | |
parent | 0ed771f5045729052cef906475395dc8ced3fc8a (diff) |
Remove obsolete code paths
Change-Id: Ib8c26b7697d03f24b4efe18f2e8a4a2573e1bd3b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
-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)); |