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

libusb-win32 driver support #4

Closed
emoose opened this issue Dec 10, 2018 · 1 comment
Closed

libusb-win32 driver support #4

emoose opened this issue Dec 10, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@emoose
Copy link
Owner

emoose commented Dec 10, 2018

Instead of WinUSB there's also the libusb driver that can be installed for a device, libwdi can install this driver fine, and Xb2XInput seems to recognise devices that use that driver... but then after connecting to it immediately decides to disconnect. I guess non-driver libusb must be returning an error code somewhere after opening the device.

Not a huge problem since we suggest/automate installing WinUSB anyway, but supporting libusb drivers would still be a nice addition.

@emoose emoose added the enhancement New feature or request label Dec 10, 2018
@emoose
Copy link
Owner Author

emoose commented Dec 12, 2018

Solved it, we weren't getting disconnected from libusb, it was actually making a new connection to the same device over and over, seems libusb allows that while WinUSB gives an error code instead

I can't find a good way to check if we're already connected to a device though (libusb_claim_interface doesn't seem to work...), so instead we store the USB port #s of each connected controller, and then when we try connecting a new controller we check the USB port # of the new controller against our connected ones, seems to work fine this way, I wish there was an easier way to do it though...

@emoose emoose closed this as completed Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant