IDirectInput

Applications use the methods of the IDirectInput interface to enumerate, create, and retrieve the status of DirectInput devices, initialize the DirectInput object, and invoke an instance of the Windows Control Panel.

The IDirectInput interface is obtained by using the DirectInputCreate function.

The methods of the IDirectInput interface can be organized into the following groups.

Device Management CreateDevice
  EnumDevices
GetDeviceStatus
Miscellaneous Initialize
  RunControlPanel

The IDirectInput interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:

IUnknown AddRef
  QueryInterface
Release

The LPDIRECTINPUT type is defined as a pointer to the IDirectInput interface:

typedef struct IDirectInput    *LPDIRECTINPUT;
 

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dinput.h.
  Import Library: Use dinput.lib.