Level up your apps and games with the Game Controller framework, and easily build support for popular console game controls and MFi accessories on iPhone, iPad, Mac and Apple TV. The precise control and tactile feedback from a game controller can deepen the player’s sense of immersion and enhance the gaming experience. And now it’s easier than ever to help players discover which games support controllers.
With Xcode 12, you can indicate support for game control when building your app. By indicating controller support, the App Store product page displays the controller tag, and your app will have access to the options for mapping controller input in Settings.
How to add game controller support to Xcode 1
Follow a few simple steps to indicate controller support:
- Open yours Xcode project.
- Navigate to Signing and abilities part of your app goal.
- Add the “Game Controllers” feature to Xcode.
- Select each of controller profiles your app or game supports.
Note: “Extended gamepad” refers to game controls with physical buttons, triggers, and thumb sticks such as the Steelseries Nimbus, Sony Dualshock 4 Wireless Controller, Xbox Elite Wireless Controller Series 2, and others; and “Micro Gamepad” refer to the controls provided by Siri Remote for Apple TV.
If you are building your app using an older version of Xcode, you can indicate controller support by editing
info.plist for your app. Set
GCSupportsControllerUserInteraction the key to
true, and then specify each of the controller profiles your app supports.
GCSupportsControllerUserInteraction<true/> GCSupportedGameControllers ProfileName ExtendedGamepad
The Game Controller framework offers powerful features for your apps on Apple platforms. And with iOS 14, tvOS 14 and macOS Big Sur, your app will also support Xbox Adaptive Controller and Xbox Elite Wireless Controller Series 2, custom haptics for feedback and keyboard and mouse input on the iPad. For more information, be sure to check out “Advances in Game Controllers” and “Bring Keyboard and Mouse Game to iPad.”