Class

GCGamepad

The standard set of gamepad controls.

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

Symbols

Determining the Controller That Owns This Profile

var controller:​ GCController?

The controller this profile is associated with.

Determining When Any Element in the Profile Changes

var value​Changed​Handler:​ GCGamepad​Value​Changed​Handler?

A block called when any element in the profile changes.

Reading Shoulder Button Inputs

Reading Directional Pad Inputs

Saving a Snapshot

func save​Snapshot()

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

Constants

GCGamepad​Value​Changed​Handler

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

Relationships

Inherits From