Defined Types



HIDCaps

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.

Fields

NameDescription
usageSpecifies 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.
usagePageSpecifies the usage page identifier for this top level collection.
inputReportByteLengthSpecifies the maximum length, in bytes, of an input report for this device, including the report ID which is unilaterally prepended to the device data.
outputReportByteLengthSpecifies the maximum length, in bytes, of an output report for this device, including the report ID which is unilaterally prepended to the device data.
featureReportByteLengthSpecifies the maximum length, in bytes, of a feature report for this device, including the report ID which is unilaterally prepended to the device data.
numberCollectionNodesSpecifies the number of HIDCollectionNode structures that are returned for this top level collection by the HIDGetConnectionNodes function.
numberInputButtonCapsSpecifies the number of input buttons.
numberInputValueCapsSpecifies the number of input values.
numberOutputButtonCapsSpecifies the number of output buttons.
numberOutputValueCapsSpecifies the number of output values
numberFeatureButtonCapsSpecifies the number of feature buttons.
numberFeatureValueCapsSpecifies the number of feature values.

HIDUsageAndPage

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.

Fields

NameDescription
usageSpecifies the usage identifier within the usage page specified by usagePage of a button that is down.
usagePageSpecifies the usage page identifier of a button that is down.

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)