Class

GCGamepadSnapshot

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

Declaration

@interface GCGamepadSnapshot : GCGamepad

Overview

To create a gamepad snapshot, call the saveSnapshot method on a GCGamepad object. The GCGamepadSnapshot 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 snapshotData property.

Topics

Converting Between Snapshots and Data Objects

- initWithSnapshotData:

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

- initWithController:snapshotData:

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

snapshotData

The flattened control input values for the snapshot.

Flattening a Snapshot to Memory

GCGamepadSnapShotDataV100

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

NSDataFromGCGamepadSnapShotDataV100

Encapsulates the controller data from a gamepad structure into an NSData object.

GCGamepadSnapShotDataV100FromNSData

Copies the recorded data from a gamepad snapshot into a readable structure.

Relationships

Inherits From

See Also

Profile Snapshots

GCExtendedGamepadSnapshot

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

Deprecated
GCMicroGamepadSnapshot

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

Deprecated