Platform SDK: DirectX

DIMAKEUSAGEDWORD

The DIMAKEUSAGEDWORD macro combines the Usage Page and Usage HID codes for a device object, for passing to the IDirectInputDevice7::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 declared in Dinput.h as follows:

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

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in dinput.h.