ObjFW  Diff

Differences From Artifact [9ad6372165]:

  • File src/hid/OHNESGamepad.h — part of check-in [8192212937] at 2025-01-03 20:55:00 on branch trunk — ObjFWHID: 8Bitdo NES30 GamePad support for GCF (user: js size: 1446)

To Artifact [a6ff6e1ab2]:

  • File src/hid/OHNESGamepad.h — part of check-in [7c82a8015d] at 2025-01-04 04:35:39 on branch trunk — ObjFWHID: Refactor GCF support (user: js size: 1201) [more...]

17
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
 * <https://www.gnu.org/licenses/>.
 */

#import "OHGamepad.h"

OF_ASSUME_NONNULL_BEGIN

@class NSString;

/**
 * @class OHNESGamepad OHNESGamepad.h ObjFWHID/ObjFWHID.h
 *
 * @brief A NES gamepad.
 */
OF_SUBCLASSING_RESTRICTED
@interface OHNESGamepad: OFObject <OHGamepad>
{
	OFDictionary OF_GENERIC(OFString *, OF_KINDOF(OHGameControllerButton *))
	    *_buttons;
	OFDictionary OF_GENERIC(OFString *, OHGameControllerDirectionalPad *)
	    *_directionalPads;
	/* Only used with GameController.framework */
	OFDictionary OF_GENERIC(NSString *, OHGameControllerButton *)
	    *_buttonsMap;
	OFDictionary OF_GENERIC(NSString *, OHGameControllerDirectionalPad *)
	    *_directionalPadsMap;
}

- (instancetype)init OF_UNAVAILABLE;
@end

OF_ASSUME_NONNULL_END







<
<












<
<
<
<
<






17
18
19
20
21
22
23


24
25
26
27
28
29
30
31
32
33
34
35





36
37
38
39
40
41
 * <https://www.gnu.org/licenses/>.
 */

#import "OHGamepad.h"

OF_ASSUME_NONNULL_BEGIN



/**
 * @class OHNESGamepad OHNESGamepad.h ObjFWHID/ObjFWHID.h
 *
 * @brief A NES gamepad.
 */
OF_SUBCLASSING_RESTRICTED
@interface OHNESGamepad: OFObject <OHGamepad>
{
	OFDictionary OF_GENERIC(OFString *, OF_KINDOF(OHGameControllerButton *))
	    *_buttons;
	OFDictionary OF_GENERIC(OFString *, OHGameControllerDirectionalPad *)
	    *_directionalPads;





}

- (instancetype)init OF_UNAVAILABLE;
@end

OF_ASSUME_NONNULL_END