GCGamepadSnapShotDataV100FromNSData(_:_:)
Copies the recorded data from a gamepad snapshot into a readable structure.
Declaration
func GCGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCGamepadSnapShotDataV100>?, _ data: Data?) -> BoolParameters
- 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.