Function

GCGamepadSnapShotDataV100FromNSData(_:_:)

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

Declaration

func GCGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCGamepadSnapShotDataV100>?, _ data: Data?) -> Bool

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

true if the data could be copied, false 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

struct GCGamepadSnapShotDataV100

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

Deprecated
func NSDataFromGCGamepadSnapShotDataV100(UnsafeMutablePointer<GCGamepadSnapShotDataV100>?) -> Data?

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

Deprecated