RetroArch
GCExtendedGamepad.h
Go to the documentation of this file.
1 //
2 // GCExtendedGamepad.h
3 // GameController
4 //
5 // Copyright (c) 2012 Apple Inc. All rights reserved.
6 //
7 
8 #import "GameController.h"
9 
10 @class GCController;
12 
25 @interface GCExtendedGamepad : NSObject
26 
30 #if !__has_feature(objc_arc)
31 @property (readonly, assign) GCController *controller;
32 #else
33 @property (readonly, weak) GCController *controller;
34 #endif
35 
46 
56 
60 @property (readonly) GCControllerDirectionPad *dpad;
61 
73 @property (readonly) GCControllerButtonInput *buttonA;
74 @property (readonly) GCControllerButtonInput *buttonB;
75 @property (readonly) GCControllerButtonInput *buttonX;
76 @property (readonly) GCControllerButtonInput *buttonY;
77 
82 
87 
91 @property (readonly) GCControllerButtonInput *leftShoulder;
95 @property (readonly) GCControllerButtonInput *rightShoulder;
96 
100 @property (readonly) GCControllerButtonInput *leftTrigger;
101 @property (readonly) GCControllerButtonInput *rightTrigger;
102 
103 @end
GCControllerButtonInput * buttonB
Definition: GCExtendedGamepad.h:74
GCControllerDirectionPad * leftThumbstick
Definition: GCExtendedGamepad.h:81
GCControllerButtonInput * buttonA
Definition: GCExtendedGamepad.h:73
Definition: GCControllerElement.h:14
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
GCControllerButtonInput * buttonX
Definition: GCExtendedGamepad.h:75
GCController * controller
Definition: GCExtendedGamepad.h:31
GCControllerButtonInput * leftTrigger
Definition: GCExtendedGamepad.h:100
GCControllerButtonInput * rightTrigger
Definition: GCExtendedGamepad.h:101
GCControllerDirectionPad * rightThumbstick
Definition: GCExtendedGamepad.h:86
#define GAMECONTROLLER_EXPORT
Definition: GameController.h:18
void(^ GCExtendedGamepadValueChangedHandler)(GCExtendedGamepad *gamepad, GCControllerElement *element)
Definition: GCExtendedGamepad.h:44
GCExtendedGamepadValueChangedHandler valueChangedHandler
Definition: GCExtendedGamepad.h:45
GCControllerButtonInput * rightShoulder
Definition: GCExtendedGamepad.h:95
Definition: GCExtendedGamepadSnapshot.h:22
GCControllerButtonInput * leftShoulder
Definition: GCExtendedGamepad.h:91
Definition: GCControllerDirectionPad.h:15
Definition: GCController.h:56
GCControllerDirectionPad * dpad
Definition: GCExtendedGamepad.h:60
Definition: GCExtendedGamepad.h:25
Definition: GCControllerButtonInput.h:11
GCExtendedGamepadSnapshot * saveSnapshot()
GCControllerButtonInput * buttonY
Definition: GCExtendedGamepad.h:76