Copies the recorded data from an extended gamepad snapshot into a readable structure.
SDKs
- iOS 9.0–13.0Deprecated
- macOS 10.11–10.15Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
Framework
- Game Controller
Declaration
func GCExtendedGamepadSnapShotDataV100FromNSData(_ snapshotData: Unsafe Mutable Pointer<GCExtended Gamepad Snap Shot Data V100>?, _ 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 thesnapshot
method of aData GCExtended
object.Gamepad Snapshot
Return Value
true
if the data could be copied, false
if snapshot
is nil
, data
is nil
, or if the contents of data
do not contain a compatible snapshot.