Differences From Artifact [347fbd7215]:
- File
src/hid/HIDGameController.h
— part of check-in
[39639cd987]
at
2024-06-02 21:24:25
on branch trunk
— Completely redesign and rewrite ObjFWHID
Right now only evdev is supported, support for others will be added back
later. (user: js, size: 2632) [annotate] [blame] [check-ins using]
To Artifact [e37811cd3f]:
- File src/hid/HIDGameController.h — part of check-in [16aab59c3c] at 2024-06-02 23:51:01 on branch trunk — Add HIDGameControllerMapping (user: js, size: 2438) [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 | # import <ObjFW/OFObject.h> # import <ObjFW/OFString.h> # endif #endif OF_ASSUME_NONNULL_BEGIN @class HIDGameControllerMapping; @class OFArray OF_GENERIC(ObjectType); @class OFNumber; /** * @class HIDGameController HIDGameController.h ObjFWHID/HIDGameController.h * * @brief A class for reading state from a game controller. */ @interface HIDGameController: OFObject #ifdef OF_HAVE_CLASS_PROPERTIES @property (class, readonly, nonatomic) OFArray <HIDGameController *> *controllers; #endif |
︙ | ︙ | |||
58 59 60 61 62 63 64 | /** * @brief The product ID of the controller or `nil` if unavailable. */ @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFNumber *productID; /** | | < < < | < < | < | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | /** * @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 * being performed. */ @property (readonly, nonatomic) HIDGameControllerMapping *unmappedMapping; /** * @brief Returns the available controllers. * * @return The available controllers */ + (OFArray OF_GENERIC(HIDGameController *) *)controllers; |
︙ | ︙ |