DIMAKEUSAGEDWORD

DirectX8

DIMAKEUSAGEDWORD
 
Microsoft DirectX 8.1 (C++)

DIMAKEUSAGEDWORD

The DIMAKEUSAGEDWORD macro combines the usage page and usage codes for a device object representing a Human Interface Device, for passing to the IDirectInputDevice8::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/XP: Requires Windows® 2000.
  Windows 98/Me: Requires Windows 98.
  Header: Declared in Dinput.h.