Platform SDK: DirectX |
Applications use the methods of the IDirectInput7 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 IDirectInput7 interface is obtained by using the DirectInputCreateEx function.
IDirectInput7 supersedes the IDirectInput interface used in earlier versions of DirectX.
The methods of the IDirectInput7 interface can be organized into the following groups.
Device Management | CreateDevice |
CreateDeviceEx | |
EnumDevices | |
FindDevice | |
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 IDirectInput7 interface:
typedef struct IDirectInput7 *LPDIRECTINPUT7;
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.