Support game controllers in your app – Discover

Support game controllers in your app – Discover

  • Apple
  • September 15, 2020
  • No Comment
  • 75
  • 6 minutes read


Game controller

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:

  1. Open yours Xcode project.
  2. Navigate to Signature and capabilities application goal section.
  3. Add “Game Controllers” capability to Xcode.
  4. Select each of the driver profiles your application or game is supported.
List of game controller capabilities in Xcode

List of game controller capabilities in Xcode

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.

Enable extended gamepad support

Enable extended gamepad support

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>

Press home

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.”

Resources

Advances in game controllers

Bring your keyboard and mouse games to your iPad



Source link

Related post

EDUCAUSE 2022: How Data Collection Can Improve Student and Faculty IT Support

EDUCAUSE 2022: How Data Collection Can Improve Student and…

At Indiana University, Gladdin said, to make life easier for students and faculty, they implemented a course template for the Canvas…
UGC, AICTE warn students against online PhD programmes offered by EdTech platforms | Latest News India

UGC, AICTE warn students against online PhD programmes offered…

The University Grants Commission (UGC) and the All India Council for Technical Education (AICTE) on Friday issued a joint advisory against…
UGC, AICTE warn students against online PhD programmes offered by EdTech platforms | Latest News India

UGC, AICTE warn students against online PhD programmes offered…

The University Grants Commission (UGC) and the All India Council for Technical Education (AICTE) on Friday issued a joint advisory against…

Leave a Reply

Your email address will not be published.