Direct Input Interfaces

Created by Jijith Nadumuri at 28 Apr 2010 12:19 and updated at 28 Apr 2010 12:53

DirectInput Interfaces

The DirectInput API is used to process data from input devices like a keyboard, mouse, joystick, or other game controller. DirectInput gives faster access to input data by communicating directly with the hardware drivers rather than relying on Windows messages, even when the application is in the background.

The Three Interfaces of DirectInput


The IDirectInput interface is the root interface of DirectInput. It represents the whole of DirectInput. It is used to enumerate the input devices present on the system, and to create input device objects to represent each of the devices found.

Creation method:-



The IDirectInputDevice interface represents an input device, like a keyboard, mouse, joystick or some other game controller. It is used to access and control the input devices and to gather user-inputs from them. It is also used to create and play force feedback effects on an input device if the device support force feedback effects.
Creation method:-



The IDirectInputEffect interface represent a force feedback effect. The interface is used to download an effect to an input device, initialize it, change effect parameters, start, stop or unload the effect. Not all input devices support force feedback.

Creation method:-


Share:- Facebook

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License