Wiimote: (Re-)Connect a disconnected real Wiimote when a button is pressed.

Where disconnected is defined as: The real physical device is still connected to the PC, but the emulated Wii sees the Wiimote as disconnected.
This commit is contained in:
Admiral H. Curtiss
2015-07-10 18:16:55 +02:00
parent e462422ef7
commit 5594b107eb
3 changed files with 55 additions and 0 deletions

View File

@ -127,6 +127,8 @@ void Update(int _number, bool _connected)
{
if (WIIMOTE_SRC_EMU & g_wiimote_sources[_number])
((WiimoteEmu::Wiimote*)s_config.controllers[_number])->ConnectOnInput();
if (WIIMOTE_SRC_REAL & g_wiimote_sources[_number])
WiimoteReal::ConnectOnInput(_number);
}
}