Platform SDK: DirectX

DirectInput の作成

[C++]

DirectInput アプリケーションでは、必ず最初に IDirectInput7 インターフェイスを取得する。これを最も簡単に行う方法は、DirectInputCreateEx 関数を呼び出すことである。

単一の DirectInput オブジェクトを作成し、アプリケーションが終了するまで解放するべきではない。

[Visual Basic]

DirectInput アプリケーションでは、必ず最初に IDirectInput7 オブジェクトを作成する。これを行うには、DirectX7.DirectInputCreate メソッドを使用する。

単一の DirectInput オブジェクトを作成し、アプリケーションが終了するまで解放するべきではない。