Class

GCGamepad​Snapshot

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

Overview

To create a gamepad snapshot, call the save​Snapshot() method on a GCGamepad object. The GCGamepad​Snapshot class is a subclass of the GCGamepad class, so you use the parent class’s properties to read the individual element values. The snapshot is stored in a device independent format. To get the flattened data representation of the snapshot data, read the snapshot​Data property.

Symbols

Converting Between Snapshots and Data Objects

init(snapshot​Data:​ Data)

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

init(controller:​ GCController, snapshot​Data:​ Data)

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

var snapshot​Data:​ Data

The flattened control input values for the snapshot.

Flattening a Snapshot to Memory

GCGamepad​Snap​Shot​Data​V100

A structure that holds a snapshot of a gamepad controller’s input data.

Relationships

Inherits From