|
RetroArch
|
#import <GCGamepadSnapshot.h>
Instance Methods | |
| (instancetype) | - initWithSnapshotData: |
| (instancetype) | - initWithController:snapshotData: |
Instance Methods inherited from GCGamepad | |
| (GCGamepadSnapshot *) | - saveSnapshot |
Properties | |
| NSData * | snapshotData |
Properties inherited from GCGamepad | |
| GCController * | controller |
| GCGamepadValueChangedHandler | valueChangedHandler |
| GCControllerDirectionPad * | dpad |
| GCControllerButtonInput * | buttonA |
| GCControllerButtonInput * | buttonB |
| GCControllerButtonInput * | buttonX |
| GCControllerButtonInput * | buttonY |
| GCControllerButtonInput * | leftShoulder |
| GCControllerButtonInput * | rightShoulder |
Additional Inherited Members | |
Protected Types inherited from GCGamepad | |
| typedef void(^ | GCGamepadValueChangedHandler) (GCGamepad *gamepad, GCControllerElement *element) |
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.
| - (instancetype) initWithController: | (GCController *) | controller | |
| snapshotData: | (NSData *) | data | |
| - (instancetype) initWithSnapshotData: | (NSData *) | data |
|
readwriteatomiccopy |
1.8.15