Class

GCController

A representation of a physical game controller, connected to the device either physically or through a wireless connection.

Declaration

@interface GCController : NSObject

Topics

Discovering Controllers

+ startWirelessControllerDiscoveryWithCompletionHandler:

Starts browsing for nearby controllers.

+ stopWirelessControllerDiscovery

Stops browsing for nearby controllers.

+ controllers

The controllers connected to the device.

Determining Which Profiles Are Supported by a Controller

gamepad

The gamepad profile.

Deprecated
extendedGamepad

The extended gamepad profile.

microGamepad

The micro gamepad profile.

motion

The motion input profile.

Responding When a Controller Is Paused

controllerPausedHandler

A block called when the controller’s pause button is pressed.

Deprecated

Inspecting a Controller

attachedToDevice

A Boolean property that indicates whether the controller is closely integrated with the device.

vendorName

The name of the vendor that manufactured the controller.

Assigning a Player Index

playerIndex

The player index assigned to the controller.

Determining Which Dispatch Queue Notifications are Dispatched On

handlerQueue

The dispatch queue to be used when the values of a game controller’s input values change.

Constants

GCControllerPlayerIndex

Predefined values for controller indices.

Notifications

GCControllerDidConnectNotification

Posted immediately after a new controller is connected to the device.

GCControllerDidDisconnectNotification

Posted immediately after a controller is disconnected from the device.

Instance Properties

Instance Methods

Relationships

Inherits From