RetroArch
GCController.h
Go to the documentation of this file.
1 //
2 // GCController.h
3 // GameController
4 //
5 // Copyright (c) 2012 Apple Inc. All rights reserved.
6 //
7 
8 #import "GameController.h"
9 
34 
40 enum {
42 };
43 
56 @interface GCController : NSObject
57 
69 @property (copy) void (^controllerPausedHandler)(GCController *controller);
70 
75 @property (readonly, copy) NSString *vendorName;
76 
82 @property (readonly, getter = isAttachedToDevice) BOOL attachedToDevice;
83 
97 @property (nonatomic) NSInteger playerIndex;
98 
113 @property (retain, readonly) GCGamepad *gamepad;
114 @property (retain, readonly) GCExtendedGamepad *extendedGamepad;
115 
122 + (NSArray *)controllers;
123 
148 + (void)startWirelessControllerDiscoveryWithCompletionHandler:(void (^)(void))completionHandler;
149 
159 
160 @end
161 
NSArray * controllers()
#define GAMECONTROLLER_EXTERN
Definition: GameController.h:14
GAMECONTROLLER_EXTERN NSString *const GCControllerDidDisconnectNotification
Definition: GCController.h:33
BOOL attachedToDevice
Definition: GCController.h:82
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
Definition: GCController.h:41
GAMECONTROLLER_EXTERN NSString *const GCControllerDidConnectNotification
Definition: GCController.h:32
#define GAMECONTROLLER_EXPORT
Definition: GameController.h:18
GCGamepad * gamepad
Definition: GCController.h:113
GCExtendedGamepad * extendedGamepad
Definition: GCController.h:114
void stopWirelessControllerDiscovery()
Definition: GCController.h:56
Definition: GCGamepad.h:22
Definition: GCExtendedGamepad.h:25
void(^ controllerPausedHandler)(GCController *controller)
unsigned int BOOL
Definition: gctypes.h:51
NSInteger playerIndex
Definition: GCController.h:97
NSString * vendorName
Definition: GCController.h:75