DirectX SDK

Creating DirectInput

[C++]

The first step in any DirectInput application is obtaining the IDirectInput7 interface. You can do this most easily by calling the DirectInputCreateEx function.

You should create a single DirectInput object and not release it until the application terminates.

[Visual Basic]

The first step in any DirectInput application is creating the DirectInput object. Do this by using the DirectX7.DirectInputCreate method.

You should create a single DirectInput object and not destroy it until the application terminates.