summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Device.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2016-07-07 15:40:14 +0200
committerLéo Lam <leo@innovatetechnologi.es>2016-07-10 13:29:57 +0200
commitc827fdd2b576d34af43a9cb3b80ecd9616493cf6 (patch)
treef4721c89f6090b3bc349881cce2bf221462155b1 /Source/Core/InputCommon/ControllerInterface/Device.cpp
parentece5de24bcfcbf03109de5d5a86b49abd03a89be (diff)
WiimoteReal: Don't block on refresh
This changes Refresh() to use the existing scanning thread to scan for devices, instead of running the scan on the UI thread and blocking it. Also makes the UI thread not block when Continuous Scanning is disabled and removes duplicated code. Should fix issue 8992. Under the hood: * The scanning thread is now always active, even when continuous scanning is disabled. * The initialize code which waits for Wiimotes to be connected also uses the scanning thread instead of scanning on yet another thread. * The scanning thread now always checks for disconnected devices, to avoid Dolphin thinking a Wiimote is still connected when it isn't. So we now check if we need new Wiimotes or a Balance Board at scan time.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.cpp')
0 files changed, 0 insertions, 0 deletions