Support game controllers in your app – Discover
Raises the level of your applications and games with the game controller framework and easily incorporates compatibility with popular game console drivers and MFi accessories on iPhone, iPad, Mac and Apple TV. The precise control and tactile feedback provided by a game controller can deepen the player’s sense of immersion and enhance their gaming experience. And now it’s easier than ever to help players figure out which games drivers support.
With Xcode 12, you can indicate game driver support right when you create your application. When indicating driver support, the App Store product page will display the driver badge, and your application will be able to access the driver reassignment options in Settings.
How to add game driver support to Xcode 12
To indicate driver support, follow a few simple steps:
- Open yours Xcode project.
- Navigate to Signature and capabilities application goal section.
- Add “Game Controllers” capability to Xcode.
- Select each of the driver profiles your application or game is supported.
Note: “Extended Gamepad” refers to game controllers that include physical buttons, triggers, and thumbs such as the Nimbus Steelseries, the Sony Dualshock 4 wireless controller, the Xbox Elite 2 Series wireless controller, and more; and “Micro Gamepad” refers to the controls provided by the Siri Remote for Apple TV.
If you are creating your application with an earlier version of Xcode, you can indicate driver compatibility by editing the file
info.plist for your application. Set the
GCSupportsControllerUserInteraction key for
truethen specify each of the driver profiles that your application supports.
<key>GCSupportsControllerUserInteraction</key> <true/> <key>GCSupportedGameControllers</key> <array> <dict> <key>ProfileName</key> <string>ExtendedGamepad</string> </dict> </array>
The game controller framework provides powerful features for your applications 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 noise and keyboard and mouse input on the iPad. For more information, be sure to check out “Advances in Game Drivers” and “Bring Keyboard and Mouse Games to the iPad.”