Class

GCGamepad

The standard set of gamepad controls.

Declaration

@interface GCGamepad : NSObject

Overview

The controls associated with the gamepad profile include the following:

  • Two shoulder buttons.

  • Four face buttons arranged in a diamond pattern.

  • One directional pad (D-pad).

Topics

Determining the Controller That Owns This Profile

controller

The controller this profile is associated with.

Determining When Any Element in the Profile Changes

valueChangedHandler

A block called when any element in the profile changes.

Reading Shoulder Button Inputs

leftShoulder

The left shoulder button element.

rightShoulder

The right shoulder button element.

Reading Directional Pad Inputs

dpad

The D-pad element.

Reading Face Button Inputs

buttonA

The bottom face button.

buttonB

The right face button.

buttonX

The left face button.

buttonY

The top face button.

Saving a Snapshot

- saveSnapshot

Saves a snapshot of all of the profile’s elements.

Constants

GCGamepadValueChangedHandler

Signature for the block executed if any element in the gamepad profile changes value.

Relationships

Inherits From

See Also

Control Profiles

GCExtendedGamepad

The extended set of gamepad controls.

GCMicroGamepad

The controls provided by the Siri Remote.

GCMotion

The orientation and motion of the controller.