Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create method for properly releasing DirectInput devices #65

Open
rileyw opened this issue Jul 8, 2013 · 0 comments
Open

Create method for properly releasing DirectInput devices #65

rileyw opened this issue Jul 8, 2013 · 0 comments

Comments

@rileyw
Copy link
Contributor

rileyw commented Jul 8, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant