Class

GCExtendedGamepadSnapshot

A GCExtendedGamepadSnapshot object records all of the values from an extended gamepad profile at a particular moment in time. The snapshot is stored in a device independent format. You use snapshots when you need to record control information and use it later.

Overview

To create a gamepad snapshot, call the saveSnapshot() method on a GCExtendedGamepad object. The GCExtendedGamepadSnapshot class is a subclass of the GCExtendedGamepad class, so you can use the parent class’s properties to read the individual element values. To get the flattened data representation of the snapshot data, read the snapshotData property.

Symbols

Converting Between Extended Snapshots and Data Objects

init(snapshotData: Data)

Initializes a snapshot object with the flattened data representation obtained from another snapshot.

init(controller: GCController, snapshotData: Data)

Initializes a snapshot object associated with a specific controller using a flattened data representation obtained from another snapshot.

var snapshotData: Data

Flattens a snapshot into an archivable memory representation.

Relationships

Inherits From