30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
+
|
#endif
OF_ASSUME_NONNULL_BEGIN
@class OFArray OF_GENERIC(ObjectType);
@class OFNumber;
@class OHGameControllerProfile;
@class OHGamepad;
/**
* @class OHGameController OHGameController.h ObjFWHID/OHGameController.h
*
* @brief A class for reading state from a game controller.
*/
@interface OHGameController: OFObject
|
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
+
+
+
+
+
+
|
/**
* @brief The raw profile for the game controller, meaning no remapping is
* being performed.
*/
@property (readonly, nonatomic) OHGameControllerProfile *rawProfile;
/**
* @brief The gamepad profile for the game controller, or `nil` if not
* supported.
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OHGamepad *gamepad;
/**
* @brief Returns the available controllers.
*
* @return The available controllers
*/
+ (OFArray OF_GENERIC(OHGameController *) *)controllers;
|