Davidobot / BetterJoy

Allows the Nintendo Switch Pro Controller, Joycons and SNES controller to be used with CEMU, Citra, Dolphin, Yuzu and as generic XInput
Other
3.88k stars 343 forks source link

[BUG] Race condition resetting USB - kills controller - keeps looping connect, reset, disconnect #1111

Open athypc opened 1 year ago

athypc commented 1 year ago

Starting server on 127.0.0.1:26760 All systems go Pro controller connected. Using USB. Resetting USB connection. Removed dropped controller. Can be reconnected. Pro controller connected. Using USB. Using user stick calibration data. Using user stick calibration data. Starting poll thread. Dropped. Removed dropped controller. Can be reconnected. Pro controller connected. Using USB. Resetting USB connection. Removed dropped controller. Can be reconnected. Pro controller connected. Using USB. Using user stick calibration data. Using user stick calibration data. Starting poll thread. Dropped. Removed dropped controller. Can be reconnected. Pro controller connected. Using USB. Resetting USB connection. Removed dropped controller. Can be reconnected. Pro controller connected. Using USB. Using user stick calibration data. Using user stick calibration data. Starting poll thread. Dropped.

Matthew-MBG commented 1 year ago

Same here.

mysticentity commented 1 year ago

I have the same issue and I also sometimes have it crash on me.

Roguire14 commented 1 year ago

for me it never crashed but it does the same, i don't have a pro controller i have this one, is it because it's not a pro controller ? image

RibomBalt commented 10 months ago

I encountered the same problem, and later on I solved it by installing the driver at Drivers\HIDGuardian. Just right click the HIDGuardian Install (Run as Admin).bat and run as admin, then do a system reboot. If you have installed it correctly, you should be able to visit HIDGuardian's configuration page when you visit http://127.0.0.1:26762/ in a browser.

And then, when you launch betterjoyforcemu, click the little arrow to the right to expand the config menu, make sure you select PurgeAffectedDevices, PurgeWhitelist and UseHIDG, then click apply. Afterwards, I was able to connect my pro controller (with USB cable) and play XboxGamePass games normally.

Credits to this video on bilibili (in Chinese) for addressing this problem.