Differences From Artifact [9d245e3712]:
- File src/hid/HIDGameControllerMapping.h — part of check-in [16aab59c3c] at 2024-06-02 23:51:01 on branch trunk — Add HIDGameControllerMapping (user: js, size: 2284) [annotate] [blame] [check-ins using]
To Artifact [c9756630f5]:
- File
src/hid/OHGameControllerMapping.h
— part of check-in
[afae3291bf]
at
2024-06-03 19:39:51
on branch trunk
— ObjFWHID: Change prefix to OH
Let's leave 3 letter prefixes to 3rd parties. (user: js, size: 2261) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
27 28 29 30 31 32 33 | # import <ObjFW/OFObject.h> # import <ObjFW/OFString.h> # endif #endif OF_ASSUME_NONNULL_BEGIN | > | | | < | | | | | < | | | > | < | | | | | | | 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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | # import <ObjFW/OFObject.h> # import <ObjFW/OFString.h> # endif #endif OF_ASSUME_NONNULL_BEGIN @class OFDictionary OF_GENERIC(KeyType, ObjectType); @class OHGameControllerAxis; @class OHGameControllerButton; @class OHGameControllerDirectionalPad; /** * @class OHGameControllerMapping \ * OHGameControllerMapping.h ObjFWHID/OHGameControllerMapping.h * * @brief A mapping for a @ref OHGameController. */ @interface OHGameControllerMapping: OFObject { OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *_buttons; OFDictionary OF_GENERIC(OFString *, OHGameControllerAxis *) *_axes; OFDictionary OF_GENERIC(OFString *, OHGameControllerDirectionalPad *) *_directionalPads; OF_RESERVE_IVARS(OHGameControllerMapping, 4) } /** * @brief A map of all button names to their @ref OHGameControllerButton. */ @property (readonly, nonatomic) OFDictionary OF_GENERIC(OFString *, OHGameControllerButton *) *buttons; /** * @brief A map of all axis names to their @ref OHGameControllerAxis. */ @property (readonly, nonatomic) OFDictionary OF_GENERIC(OFString *, OHGameControllerAxis *) *axes; /** * @brief A map of all directional pads to their * @ref OHGameControllerDirectionalPad. */ @property (readonly, nonatomic) OFDictionary OF_GENERIC(OFString *, OHGameControllerDirectionalPad *) *directionalPads; @end OF_ASSUME_NONNULL_END |