roblambell/XboxOneController

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

roblambell opened this issue · 2 comments

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 :(

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