struct HIDCaps { HIDUsage usage; HIDUsage usagePage; ByteCount inputReportByteLength; ByteCount outputReportByteLength; ByteCount featureReportByteLength; UInt32 numberCollectionNodes; UInt32 numberInputButtonCaps; UInt32 numberInputValueCaps; UInt32 numberOutputButtonCaps; UInt32 numberOutputValueCaps; UInt32 numberFeatureButtonCaps; UInt32 numberFeatureValueCaps; }; typedef struct HIDCaps HIDCaps, * HIDCapsPtr;
This structure holds the parsed capabilities and data maximums returned for a device by the HIDGetCaps function.
Name Description usage Specifies the specific class of functionality that this device provides. This value is dependent and specific to the value provided in the usagePage field. For example, a keyboard could have a usagePage of kHIDUsagePage_Generic and a usage of kHIDUsage_Generic_Keyboard. usagePage Specifies the usage page identifier for this top level collection. inputReportByteLength Specifies the maximum length, in bytes, of an input report for this device, including the report ID which is unilaterally prepended to the device data. outputReportByteLength Specifies the maximum length, in bytes, of an output report for this device, including the report ID which is unilaterally prepended to the device data. featureReportByteLength Specifies the maximum length, in bytes, of a feature report for this device, including the report ID which is unilaterally prepended to the device data. numberCollectionNodes Specifies the number of HIDCollectionNode structures that are returned for this top level collection by the HIDGetConnectionNodes function. numberInputButtonCaps Specifies the number of input buttons. numberInputValueCaps Specifies the number of input values. numberOutputButtonCaps Specifies the number of output buttons. numberOutputValueCaps Specifies the number of output values numberFeatureButtonCaps Specifies the number of feature buttons. numberFeatureValueCaps Specifies the number of feature values.
struct HIDUsageAndPage { HIDUsage usage; HIDUsage usagePage; }; typedef struct HIDUsageAndPage HIDUsageAndPage, *HIDUsageAndPagePtr;
Clients use the HIDUSageAndPage structure with the HIDGetButtonsEx function to obtain both the usage page and usage identifiers of each button that is down.
Name Description usage Specifies the usage identifier within the usage page specified by usagePage of a button that is down. usagePage Specifies the usage page identifier of a button that is down.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)