ObjFW  Diff

Differences From Artifact [5ae1f17798]:

To Artifact [f4bfdcdd03]:


29
30
31
32
33
34
35
36

37
38
39
40
41
42
43




44
45
46
47
48
49
50
29
30
31
32
33
34
35

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54







-
+







+
+
+
+







# endif
#endif

OF_ASSUME_NONNULL_BEGIN

@class OFArray OF_GENERIC(ObjectType);
@class OFNumber;
@class OHGameControllerMapping;
@class OHGameControllerProfile;

/**
 * @class OHGameController OHGameController.h ObjFWHID/OHGameController.h
 *
 * @brief A class for reading state from a game controller.
 */
@interface OHGameController: OFObject
{
	OF_RESERVE_IVARS(OHGameController, 4)
}

#ifdef OF_HAVE_CLASS_PROPERTIES
@property (class, readonly, nonatomic)
    OFArray <OHGameController *> *controllers;
#endif

/**
 * @brief The name of the controller.
58
59
60
61
62
63
64
65

66
67
68

69
70
71
72
73
74
75
62
63
64
65
66
67
68

69
70
71

72
73
74
75
76
77
78
79







-
+


-
+








/**
 * @brief The product ID of the controller or `nil` if unavailable.
 */
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFNumber *productID;

/**
 * @brief An unmapped mapping for the game controller, meaning no remapping is
 * @brief The raw profile for the game controller, meaning no remapping is
 *	  being performed.
 */
@property (readonly, nonatomic) OHGameControllerMapping *unmappedMapping;
@property (readonly, nonatomic) OHGameControllerProfile *rawProfile;

/**
 * @brief Returns the available controllers.
 *
 * @return The available controllers
 */
+ (OFArray OF_GENERIC(OHGameController *) *)controllers;