Step 7: Closing Down the DirectInput System
When an application is about to close, it should destroy all DirectInput objects. This is a three-step process:
·Unacquire all DirectInput devices (IDirectInputDevice::Unacquire)
·Release all DirectInput devices (IDirectInputDevice::Release)
·Release the DirectInput object (IDirectInput::Release)
For a sample function that closes down the DirectInput system, see Sample Function 2: DI_Term.