DIMAKEUSAGEDWORD

The DIMAKEUSAGEDWORD macro combines the usage page and usage codes for a device object representing a Human Interface Device (HID), for passing to the IDirectInputDevice8::GetObjectInfo method.

#define DIMAKEUSAGEDWORD(UsagePage,Usage) \ ((DWORD)MAKELONG(Usage, UsagePage))

Parameters

UsagePage
Type is WORD. Usage page of the device object.
Usage
Type is WORD. Usage of the device object.