ステップ 7 : DirectInput システムの終了
アプリケーションを終了する直前に、すべての Microsoft® DirectInput® オブジェクトを破棄する必要がある。これは 3 段階の処理から成る。
- すべての DirectInput デバイスのアクセス権を解放する (IDirectInputDevice8::Unacquire)
- すべての DirectInput デバイスを解放する (IDirectInputDevice8::Release)
- DirectInput オブジェクトを解放する (IDirectInput8::Release)
DirectInput システムを終了させる関数のサンプルについては、「サンプル関数 2 : DI_Term」を参照すること。