RetroArch
Classes | Functions
GCGamepadSnapshot.h File Reference
#import "GameController.h"
Include dependency graph for GCGamepadSnapshot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GCGamepadSnapshot
 
struct  GCGamepadSnapShotDataV100
 

Functions

GAMECONTROLLER_EXPORT BOOL GCGamepadSnapShotDataV100FromNSData (GCGamepadSnapShotDataV100 *snapshotData, NSData *data)
 
GAMECONTROLLER_EXPORT NSData * NSDataFromGCGamepadSnapShotDataV100 (GCGamepadSnapShotDataV100 *snapshotData)
 

Function Documentation

◆ GCGamepadSnapShotDataV100FromNSData()

GAMECONTROLLER_EXPORT BOOL GCGamepadSnapShotDataV100FromNSData ( GCGamepadSnapShotDataV100 snapshotData,
NSData *  data 
)

Fills out a v100 snapshot from any compatible NSData source

Returns
NO if data is nil, snapshotData is nil or the contents of data does not contain a compatible snapshot. YES for all other cases.

◆ NSDataFromGCGamepadSnapShotDataV100()

GAMECONTROLLER_EXPORT NSData* NSDataFromGCGamepadSnapShotDataV100 ( GCGamepadSnapShotDataV100 snapshotData)

Creates an NSData object from a v100 snapshot. If the version and size is not set in the snapshot the data will automatically have version 0x100 and sizeof(GCGamepadSnapShotDataV100) set as the values implicitly.

Returns
nil if the snapshot is NULL, otherwise an NSData instance compatible with GCGamepadSnapshot.snapshotData