mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #4002 from leoetlino/wiimote-windows
WiimoteReal: Call Update() less often
This commit is contained in:
commit
12d650be99
1 changed files with 4 additions and 1 deletions
|
@ -472,7 +472,6 @@ void WiimoteScanner::ThreadFunc()
|
||||||
{
|
{
|
||||||
m_scan_mode_changed_event.WaitFor(std::chrono::milliseconds(500));
|
m_scan_mode_changed_event.WaitFor(std::chrono::milliseconds(500));
|
||||||
|
|
||||||
Update(); // Does stuff needed to detect disconnects on Windows
|
|
||||||
CheckForDisconnectedWiimotes();
|
CheckForDisconnectedWiimotes();
|
||||||
|
|
||||||
if (m_scan_mode.load() == WiimoteScanMode::DO_NOT_SCAN)
|
if (m_scan_mode.load() == WiimoteScanMode::DO_NOT_SCAN)
|
||||||
|
@ -490,6 +489,10 @@ void WiimoteScanner::ThreadFunc()
|
||||||
TryToConnectBalanceBoard(found_board);
|
TryToConnectBalanceBoard(found_board);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Update(); // Does stuff needed to detect disconnects on Windows
|
||||||
|
}
|
||||||
|
|
||||||
if (m_scan_mode.load() == WiimoteScanMode::SCAN_ONCE)
|
if (m_scan_mode.load() == WiimoteScanMode::SCAN_ONCE)
|
||||||
m_scan_mode.store(WiimoteScanMode::DO_NOT_SCAN);
|
m_scan_mode.store(WiimoteScanMode::DO_NOT_SCAN);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue