Macros
Microsoft DirectX 9.0 SDK Update (October 2004)

Macros


This section describes the macros used in Microsoft DirectInput.

Macros

Dinput.h also defines macros for C calls to all the methods of the IDirectInput8 and IDirectInputDevice8 interfaces. These macros eliminate the need for pointers to method tables. For example, the following is a C call to the IDirectInputDevice8::Release method.

lpdid->lpVtbl->Release(lpdid));

The equivalent macro call looks like this.

idirectinputdevice9_Release(lpdid);

All these macros take the same parameters as the method calls themselves.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.