DIMAKEUSAGEDWORD

The DIMAKEUSAGEDWORD macro combines the Usage Page and Usage HID codes for a device object, for passing to the IDirectInputDevice::GetObjectInfo method.

DWORD DIMAKEUSAGEDWORD(
  WORD UsagePage,
  WORD Usage  
);
 

Parameters

UsagePage
Usage page of the device object.
Usage
Usage of the device object.

Remarks

This macro is defined in Dinput.h as follows:

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

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in dinput.h.