Contents

GCMicroGamepadSnapShotDataV100FromNSData(_:_:)

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

Declaration

func GCMicroGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCMicroGamepadSnapShotDataV100>?, _ 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 GCMicroGamepadSnapshotobject.

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