ObjFW  Diff

Differences From Artifact [b6e2b08f32]:

  • File src/hid/OHGCFGameControllerProfile.h — part of check-in [b0a4480bf3] at 2024-12-25 20:36:45 on branch trunk — ObjFWHID: Fix compiling for macOS < 14 or iOS < 17 (user: js size: 2093)

To Artifact [9b75fac48f]:

  • File src/hid/OHGCFGameControllerProfile.h — part of check-in [3ca2f87974] at 2024-12-26 01:44:52 on branch trunk — ObjFWHID: Support DualSense via GCF (user: js size: 1822)

18
19
20
21
22
23
24

25
26
27
28
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
55
56
57
58
59
18
19
20
21
22
23
24
25
26
27
28
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







+










-
+
+











-
-
-
-
-
-
-






 */

#include "config.h"

#import <GameController/GameController.h>

#import "OHGameControllerProfile.h"
#import "OHGCFGameController.h"

OF_ASSUME_NONNULL_BEGIN

@class OHGameControllerElement;
@class GCControllerInputState;
@class GCControllerLiveInput;
@protocol GCGameControllerPhysicalElement;

__attribute__((__availability__(macOS, introduced=14.0)))
__attribute__((__availability__(iOS, introduced=17.0)))
@interface OHGCFGameControllerProfile: OFObject <OHGameControllerProfile>
@interface OHGCFGameControllerProfile: OFObject <OHGameControllerProfile,
    OHGCFMapping>
{
	OFDictionary<OFString *, OHGameControllerButton *> *_buttons;
	OFDictionary<OFString *, OHGameControllerAxis *> *_axes;
	OFDictionary<OFString *, OHGameControllerDirectionalPad *>
	    *_directionalPads;
	OFDictionary<NSString *, OHGameControllerButton *> *_buttonMap;
	OFDictionary<NSString *, OHGameControllerAxis *> *_axesMap;
	OFDictionary<NSString *, OHGameControllerDirectionalPad *>
	    *_directionalPadsMap;
}

@property (readonly, nonatomic)
    OFDictionary<NSString *, OHGameControllerButton *> *oh_buttonsMap;
@property (readonly, nonatomic)
    OFDictionary<NSString *, OHGameControllerAxis *> *oh_axesMap;
@property (readonly, nonatomic) OFDictionary<NSString *,
    OHGameControllerDirectionalPad *> *oh_directionalPadsMap;

- (instancetype)init OF_UNAVAILABLE;
- (instancetype)oh_initWithLiveInput: (GCControllerLiveInput *)liveInput
    OF_METHOD_FAMILY(init);
@end

OF_ASSUME_NONNULL_END