dolphin/Source/Core
Steven Newbury e9a696b160 Retry opening of wiimote channels on initial failure #5997
There seems to be a race condition between a peripheral device
connecting to the bluetooth controller and it being ready to use.
It's very short and it depends upon the controller, some appear to
connect synchronously and block until the device is ready, others
report the device upon discovery but do not allow communication straight
away. I don't know which is the correct behaviour, or whether it depends
on the peripheral, controller or both. Anyway, Dolphin waits for a
remote to appear and immediately attempts to open the communication
channels, this can fail because the device isn't ready yet, delay, try
again, and it works.

There are other (unlikely) chances the device is busy at random
moments after this initial race condition so it loops around try to
reconnect.

This was inspired by an earlier patch, see here:
https://bugs.dolphin-emu.org/issues/5997#note-20

I can confirm that it works perfectly for me on a bluetooth
controller where otherwise it's impossible to connect (Dell 380
Bluetooth 4.0).
2017-06-19 09:22:04 +01:00
..
AudioCommon Move IOFile to a separate file 2017-06-15 21:33:50 +02:00
Common Analytics: Set the timeout to 5 seconds 2017-06-18 23:16:03 +02:00
Core Retry opening of wiimote channels on initial failure #5997 2017-06-19 09:22:04 +01:00
DiscIO Merge pull request #5611 from JosJuice/reorganize-file-namespace 2017-06-15 23:28:36 +02:00
DolphinNoGUI NoGUI: Fix a missing include for Xlib 2017-06-13 11:46:13 +02:00
DolphinQt2 DolphinQt2: FocusEventFilter -> WindowActivationEventFilter 2017-06-15 16:12:05 -07:00
DolphinWX DolphinWX: Fix encoding errors in UpdateTitle 2017-06-16 17:20:13 +02:00
InputCommon StringUtil: Make SplitString return by value 2017-06-11 16:48:20 +02:00
UICommon Allow the user to ignore signature issues during WAD import 2017-06-16 16:17:38 +02:00
VideoBackends Merge pull request #5305 from iwubcode/abstract_texture 2017-06-18 12:57:05 -07:00
VideoCommon VideoCommon: Fix VS filter for AbstractTexture.cpp 2017-06-18 22:58:02 -04:00
CMakeLists.txt Moved NoGUI out of DolphinWx. 2017-03-08 01:24:18 -08:00