Merge branch 'join-wiimote-scanning-thread'
This commit is contained in:
commit
95c234ceb3
|
@ -32,7 +32,7 @@ void Shutdown()
|
||||||
delete *i;
|
delete *i;
|
||||||
g_plugin.controllers.clear();
|
g_plugin.controllers.clear();
|
||||||
|
|
||||||
WiimoteReal::Shutdown();
|
WiimoteReal::Stop();
|
||||||
|
|
||||||
g_controller_interface.Shutdown();
|
g_controller_interface.Shutdown();
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,7 @@ namespace WiimoteReal
|
||||||
{
|
{
|
||||||
|
|
||||||
void Initialize(bool wait = false);
|
void Initialize(bool wait = false);
|
||||||
|
void Stop();
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
void Resume();
|
void Resume();
|
||||||
void Pause();
|
void Pause();
|
||||||
|
|
|
@ -570,15 +570,17 @@ void Initialize(bool wait)
|
||||||
g_real_wiimotes_initialized = true;
|
g_real_wiimotes_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shutdown(void)
|
// called on emulation shutdown
|
||||||
|
void Stop(void)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < MAX_BBMOTES; ++i)
|
for (unsigned int i = 0; i < MAX_BBMOTES; ++i)
|
||||||
if (g_wiimotes[i] && g_wiimotes[i]->IsConnected())
|
if (g_wiimotes[i] && g_wiimotes[i]->IsConnected())
|
||||||
g_wiimotes[i]->EmuStop();
|
g_wiimotes[i]->EmuStop();
|
||||||
|
}
|
||||||
|
|
||||||
// WiimoteReal is shutdown on app exit
|
// called when the dolphin app exits
|
||||||
return;
|
void Shutdown(void)
|
||||||
|
{
|
||||||
g_wiimote_scanner.StopScanning();
|
g_wiimote_scanner.StopScanning();
|
||||||
|
|
||||||
std::lock_guard<std::recursive_mutex> lk(g_refresh_lock);
|
std::lock_guard<std::recursive_mutex> lk(g_refresh_lock);
|
||||||
|
|
Loading…
Reference in New Issue