20 #ifdef OBJFWHID_LOCAL_INCLUDES 24 # if defined(__has_feature) && __has_feature(modules) 27 # import <ObjFW/OFObject.h> 28 # import <ObjFW/OFString.h> 33 #import "OHExtendedGamepad.h" 35 OF_ASSUME_NONNULL_BEGIN
37 @class OFArray OF_GENERIC(ObjectType);
51 #ifdef OF_HAVE_CLASS_PROPERTIES 52 @property (
class, readonly, nonatomic)
59 @property (readonly, nonatomic, copy)
OFString *name;
64 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFNumber *vendorID;
69 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
OFNumber *productID;
74 @property (readonly, nonatomic) id <OHGameControllerProfile> profile;
80 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) id <OHGamepad> gamepad;
86 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
110 extern const uint16_t OHVendorIDSony;
111 extern const uint16_t OHVendorIDNintendo;
112 extern const uint16_t OHVendorIDGoogle;
113 extern const uint16_t OHProductIDDualShock4;
114 extern const uint16_t OHProductIDDualSense;
115 extern const uint16_t OHProductIDLeftJoyCon;
116 extern const uint16_t OHProductIDRightJoyCon;
117 extern const uint16_t OHProductIDN64Controller;
118 extern const uint16_t OHProductIDStadiaController;
123 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:107
A class for reading state from a game controller.
Definition: OHGameController.h:46
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A game controller profile representing a gamepad.
A profile for a OHGameController.
Definition: OHGameControllerProfile.h:37
A class for handling strings.
Definition: OFString.h:142
Provides a way to store a number in an object.
Definition: OFNumber.h:46