Home / IOS Development / Support game controls in your app – Discover

Support game controls in your app – Discover



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
2

Follow a few simple steps to indicate controller support:

  1. Open yours Xcode project.
  2. Navigate to Signing and abilities part of your app goal.
  3. Add the “Game Controllers” feature to Xcode.
  4. 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 
		  
	

Press Start

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

Resources


Advances in game controllers

Let’s rumble! Discover how to incorporate third-party game controls and custom haptics into your games on iPhone, iPad, Mac and Apple TV. We show you how to add support for the latest controllers – including the Xbox Elite Wireless Controller Series 2 and Adaptive Controller – and map …


Bring keyboard and mouse games to iPad

Level up your iPad games and add the keyboard, mouse and trackpad controls. Discover how to use the Game Controller framework to enhance your existing titles, transfer games from other platforms, or dream of brand new interaction experiences. Learn how to integrate keyboard and “delta” …


Source link