JibbSmart / JoyShockLibrary

Read DualSense, DualShock 4, JoyCon, and Pro Controller input on PC -- compiled for Windows, but code should work on other platforms.
Other
226 stars 42 forks source link

A Switch Pro gamepad connected through Bluetooth and then USB is detected twice; First thread get's stuck #55

Open Takao-7 opened 1 year ago

Takao-7 commented 1 year ago

Steps to reproduce (Windows):

  1. Connect a Switch Pro Gamepad through Bluetooth
  2. Then connect the gamepad through USB

Observe that both the "serial number" and "path" are different between connecting it through USB and Bluetooth. Because of this, the gamepad is now connected through USB and the thread handling the Bluetooth connection gets stuck in JoyShock.cpp:589 if (!get_spi_data(0x603D, 0x12, factory_stick_cal)) { return false; }.