RetroArch
Instance Methods | Properties | List of all members
GCGamepadSnapshot Class Reference

#import <GCGamepadSnapshot.h>

Inheritance diagram for GCGamepadSnapshot:
[legend]
Collaboration diagram for GCGamepadSnapshot:
[legend]

Instance Methods

(instancetype) - initWithSnapshotData:
 
(instancetype) - initWithController:snapshotData:
 
- Instance Methods inherited from GCGamepad
(GCGamepadSnapshot *) - saveSnapshot
 

Properties

NSData * snapshotData
 
- Properties inherited from GCGamepad
GCControllercontroller
 
GCGamepadValueChangedHandler valueChangedHandler
 
GCControllerDirectionPaddpad
 
GCControllerButtonInputbuttonA
 
GCControllerButtonInputbuttonB
 
GCControllerButtonInputbuttonX
 
GCControllerButtonInputbuttonY
 
GCControllerButtonInputleftShoulder
 
GCControllerButtonInputrightShoulder
 

Additional Inherited Members

- Protected Types inherited from GCGamepad
typedef void(^ GCGamepadValueChangedHandler) (GCGamepad *gamepad, GCControllerElement *element)
 

Detailed Description

A GCGamepadSnapshot snapshot is a concrete GCGamepad implementation. It can be used directly in an application to implement controller input replays. It is also returned as the result of polling a controller.

The current snapshotData is readily available to access as NSData. A developer can serialize this to any destination necessary using the NSData API.

The data contains some version of a GCGamepadSnapShotData structure.

See also
-[GCGamepad - saveSnapshot (GCGamepad)]

Method Documentation

◆ initWithController:snapshotData:()

- (instancetype) initWithController: (GCController *)  controller
snapshotData: (NSData *)  data 

◆ initWithSnapshotData:()

- (instancetype) initWithSnapshotData: (NSData *)  data

Property Documentation

◆ snapshotData

- (NSData*) snapshotData
readwriteatomiccopy

The documentation for this class was generated from the following file: