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

Go to the source code of this file.

Classes

class  GCExtendedGamepadSnapshot
 
struct  GCExtendedGamepadSnapShotDataV100
 

Functions

GAMECONTROLLER_EXPORT BOOL GCExtendedGamepadSnapShotDataV100FromNSData (GCExtendedGamepadSnapShotDataV100 *snapshotData, NSData *data)
 
GAMECONTROLLER_EXPORT NSData * NSDataFromGCExtendedGamepadSnapShotDataV100 (GCExtendedGamepadSnapShotDataV100 *snapshotData)
 

Function Documentation

◆ GCExtendedGamepadSnapShotDataV100FromNSData()

GAMECONTROLLER_EXPORT BOOL GCExtendedGamepadSnapShotDataV100FromNSData ( GCExtendedGamepadSnapShotDataV100 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.

◆ NSDataFromGCExtendedGamepadSnapShotDataV100()

GAMECONTROLLER_EXPORT NSData* NSDataFromGCExtendedGamepadSnapShotDataV100 ( GCExtendedGamepadSnapShotDataV100 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(GCExtendedGamepadSnapShotDataV100) set as the values implicitly.

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