RetroArch
GCGamepad.h
Go to the documentation of this file.
1 //
2 // GCGamepad.h
3 // GameController
4 //
5 // Copyright (c) 2012 Apple Inc. All rights reserved.
6 //
7 
8 #import "GameController.h"
9 
10 @class GCController;
11 @class GCGamepadSnapshot;
12 
22 @interface GCGamepad : NSObject
23 
27 #if !__has_feature(objc_arc)
28 @property (readonly, assign) GCController *controller;
29 #else
30 @property (readonly, weak) GCController *controller;
31 #endif
32 
43 
53 
57 @property (readonly) GCControllerDirectionPad *dpad;
58 
70 @property (readonly) GCControllerButtonInput *buttonA;
71 @property (readonly) GCControllerButtonInput *buttonB;
72 @property (readonly) GCControllerButtonInput *buttonX;
73 @property (readonly) GCControllerButtonInput *buttonY;
74 
78 @property (readonly) GCControllerButtonInput *leftShoulder;
82 @property (readonly) GCControllerButtonInput *rightShoulder;
83 
84 @end
GCControllerButtonInput * rightShoulder
Definition: GCGamepad.h:82
Definition: GCControllerElement.h:14
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
GCControllerButtonInput * buttonA
Definition: GCGamepad.h:70
Definition: GCGamepadSnapshot.h:23
#define GAMECONTROLLER_EXPORT
Definition: GameController.h:18
GCGamepadValueChangedHandler valueChangedHandler
Definition: GCGamepad.h:42
GCControllerButtonInput * buttonB
Definition: GCGamepad.h:71
Definition: GCControllerDirectionPad.h:15
GCGamepadSnapshot * saveSnapshot()
Definition: GCController.h:56
GCControllerButtonInput * leftShoulder
Definition: GCGamepad.h:78
GCControllerButtonInput * buttonY
Definition: GCGamepad.h:73
Definition: GCGamepad.h:22
Definition: GCControllerButtonInput.h:11
GCControllerButtonInput * buttonX
Definition: GCGamepad.h:72
GCControllerDirectionPad * dpad
Definition: GCGamepad.h:57
GCController * controller
Definition: GCGamepad.h:28
void(^ GCGamepadValueChangedHandler)(GCGamepad *gamepad, GCControllerElement *element)
Definition: GCGamepad.h:41