Function

GCGamepadSnapShotDataV100FromNSData

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

Declaration

BOOL GCGamepadSnapShotDataV100FromNSData(GCGamepadSnapShotDataV100 *snapshotData, NSData *data);

Parameters

snapshotData

A pointer to memory to fill with the shapshot data.

data

An NSData object that contains recorded data. Often, this is obtained by calling the snapshotData method of a GCGamepadSnapshot object.

Return Value

YES if the data could be copied, NO if snapshotData is nil, data is nil, or if the contents of data do not contain a compatible snapshot.

See Also

Flattening a Snapshot to Memory

GCGamepadSnapShotDataV100

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

Deprecated
NSDataFromGCGamepadSnapShotDataV100

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

Deprecated