Re-add the HandleWiimoteDisconnect calls to the RealWiimote::Shutdown

routine.  This is needed to actually disconnect real wiimotes and delete
the corresponding wiimote objects when the app exits.
This commit is contained in:
Glenn Rice 2013-08-01 07:16:51 -05:00
parent 7aae59a766
commit be76dc153b
1 changed files with 3 additions and 0 deletions

View File

@ -591,6 +591,9 @@ void Shutdown(void)
NOTICE_LOG(WIIMOTE, "WiimoteReal::Shutdown");
g_real_wiimotes_initialized = false;
for (unsigned int i = 0; i < MAX_BBMOTES; ++i)
HandleWiimoteDisconnect(i);
}
void Resume()