Framework

GameController

Support for hardware game controllers.

Overview

The GameController framework is used to receive input data from game controllers.

Symbols

Game Controllers

GCController

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

Input Elements

GCControllerElement

An input associated with a physical control, such as a button or thumbstick.

GCControllerAxisInput

A control element measuring movement along a particular axis.

GCControllerButtonInput

A control element measuring a button press.

GCControllerDirectionPad

A control element associated with a directional pad or a thumbstick.

Control Profiles

A profile maps the hardware controls of a particular controller to a set of elements usable by your game.

GCExtendedGamepad

The extended set of gamepad controls.

GCGamepad

The standard set of gamepad controls.

GCMicroGamepad

The controls provided by the Siri Remote.

GCMotion

Information about the orientation and motion of the controller.

Profile Snapshots

Snapshots are used to save the current values of a profile's elements to an object that can be read later.

GCExtendedGamepadSnapshot

A recording of all of the values provided by a GCExtendedGamepad object.

GCGamepadSnapshot

A recording of all of the values provided by a GCGamepad object.

GCMicroGamepadSnapshot

A recording of all of the values provided by a GCMicroGamepad object.

Routing Events

GCEventViewController

A view controller that determines how game controller input data is routed by the operating system.

Extended Types

NSNotification.Name

The type used for the name of a notification.

See Also