Merge pull request #3903 from leoetlino/wiimote-disconnect

Disconnect real Wiimotes when disconnected by games (not on all platforms)
This commit is contained in:
Matthew Parlane
2016-06-26 18:33:09 +12:00
committed by GitHub
4 changed files with 13 additions and 2 deletions

View File

@ -71,7 +71,9 @@ void Pause()
// An L2CAP packet is passed from the Core to the Wiimote on the HID CONTROL channel.
void ControlChannel(int number, u16 channel_id, const void* data, u32 size)
{
if (WIIMOTE_SRC_HYBRID & g_wiimote_sources[number])
if (WIIMOTE_SRC_REAL & g_wiimote_sources[number])
WiimoteReal::ControlChannel(number, channel_id, data, size);
else if (WIIMOTE_SRC_HYBRID & g_wiimote_sources[number])
static_cast<WiimoteEmu::Wiimote*>(s_config.GetController(number))
->ControlChannel(channel_id, data, size);
}