mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Disconnect real Wiimotes when disconnected by games
This commit makes real Wiimotes really disconnect when they are disconnected by the emulated software, which is more similar to how it works with a real Wii and allows Wiimotes to be disconnected after timeout for power saving. This is currently only enabled on Linux, because of limitations on the other platforms.
This commit is contained in:
@ -72,7 +72,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user