DirectInput devices are being released during destruction of CInput; however, this sets the precedence that CInput and the DirectInput devices have been initialized before the destructor has been called; therefore, it is better to move the input device release to a separate method that will be called during shutdown.
An unexpected exception will be reported to the user if input devices are released before initialization.
DirectInput devices are being released during destruction of CInput; however, this sets the precedence that CInput and the DirectInput devices have been initialized before the destructor has been called; therefore, it is better to move the input device release to a separate method that will be called during shutdown.
An unexpected exception will be reported to the user if input devices are released before initialization.