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

An invalid handle was specified in connectController(false); when a controller is connected #8

Open
roblambell opened this issue Apr 29, 2014 · 2 comments

Comments

@roblambell
Copy link
Owner

https://github.com/badgio/XboxOneController/blob/master/XInput%20DLL%20Wrapper/XInput_XboxOne.cpp#L270

@Liryna
Copy link
Contributor

Liryna commented Apr 29, 2014

Can you have log of it ?
We should reset XboxOneControllerThread, XboxOneControllerMutex and controllerHandler during connectController(true) before return false.
It probably come from this.

Otherwise I just saw that L269 we have to change
CloseHandle(XboxOneControllerThread[xboxControllerCounter]);
to
CloseHandle(XboxOneControllerMutex[xboxControllerCounter]);

Can you do this change ? My repository have totally changed :(

@roblambell
Copy link
Owner Author

http://pastebin.com/yrMHa65p
Going to step through it all when I have time!

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

2 participants