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

#import <GCExtendedGamepadSnapshot.h>

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

Instance Methods

(instancetype) - initWithSnapshotData:
 
(instancetype) - initWithController:snapshotData:
 
- Instance Methods inherited from GCExtendedGamepad
(GCExtendedGamepadSnapshot *) - saveSnapshot
 

Properties

NSData * snapshotData
 
- Properties inherited from GCExtendedGamepad
GCControllercontroller
 
GCExtendedGamepadValueChangedHandler valueChangedHandler
 
GCControllerDirectionPaddpad
 
GCControllerButtonInputbuttonA
 
GCControllerButtonInputbuttonB
 
GCControllerButtonInputbuttonX
 
GCControllerButtonInputbuttonY
 
GCControllerDirectionPadleftThumbstick
 
GCControllerDirectionPadrightThumbstick
 
GCControllerButtonInputleftShoulder
 
GCControllerButtonInputrightShoulder
 
GCControllerButtonInputleftTrigger
 
GCControllerButtonInputrightTrigger
 

Additional Inherited Members

- Protected Types inherited from GCExtendedGamepad
typedef void(^ GCExtendedGamepadValueChangedHandler) (GCExtendedGamepad *gamepad, GCControllerElement *element)
 

Detailed Description

A GCExtendedGamepadSnapshot snapshot is a concrete GCExtendedGamepad 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 GCExtendedGamepadSnapShotData structure.

See also
-[GCExtendedGamepad - saveSnapshot (GCExtendedGamepad)]

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: