mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Updated the input plugins reference of hwnd on game start. Fixes the emu wiimotes mouse IR when rendering the game to a separate window.
This commit is contained in:
@ -430,6 +430,7 @@ void EmuThread()
|
||||
else
|
||||
{
|
||||
// Update references in case controllers were refreshed
|
||||
g_controller_interface.Initialize(s_window_handle);
|
||||
Pad::LoadConfig();
|
||||
Keyboard::LoadConfig();
|
||||
}
|
||||
@ -444,9 +445,10 @@ void EmuThread()
|
||||
|
||||
// Activate Wiimotes which don't have source set to "None"
|
||||
for (unsigned int i = 0; i != MAX_BBMOTES; ++i)
|
||||
{
|
||||
if (g_wiimote_sources[i])
|
||||
GetUsbPointer()->AccessWiiMote(i | 0x100)->Activate(true);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
AudioCommon::InitSoundStream();
|
||||
@ -557,7 +559,8 @@ void EmuThread()
|
||||
|
||||
if (init_controllers)
|
||||
{
|
||||
Wiimote::Shutdown();
|
||||
if (core_parameter.bWii)
|
||||
Wiimote::Shutdown();
|
||||
Keyboard::Shutdown();
|
||||
Pad::Shutdown();
|
||||
init_controllers = false;
|
||||
|
Reference in New Issue
Block a user