HidP_IsSameUsageAndPage (Compact 2013)
3/26/2014
This macro determines if two extended usages, represented by USAGE_AND_PAGE structures, are equal.
Syntax
BOOLEAN HidP_IsSameUsageAndPage(
USAGE_AND_PAGE u1,
USAGE_AND_PAGE u2
);
Parameters
- u1
[in] Extended usage.
- u2
[in] Extended usage.
Return Value
Returns TRUE if usage u1 is the same as usage u2. Returns FALSE if usage u1 is different than usage u2.
Remarks
The terms button and usage are used synonymously.
As defined by the USB HID standard, an extended usage is a 32-bit unsigned value. The high-order 16 bits specify the usage page, and lower-order 16 bits specify the usage identifier.
Requirements
Header |
hidpi.h |