Class

GCExtendedGamepadSnapshot

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

Declaration

class GCExtendedGamepadSnapshot : GCExtendedGamepad

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

Flattening a Snapshot to Memory

struct GCExtendedGamepadSnapShotDataV100

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

func NSDataFromGCExtendedGamepadSnapShotDataV100(UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?) -> Data?

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

func GCExtendedGamepadSnapShotDataV100FromNSData(UnsafeMutablePointer<GCExtendedGamepadSnapShotDataV100>?, Data?) -> Bool

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

Relationships

Inherits From

Conforms To

See Also

Profile Snapshots

class GCGamepadSnapshot

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

Deprecated
class GCMicroGamepadSnapshot

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

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software