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:
skidau 2015-03-19 21:31:05 +11:00
parent 27619e613f
commit 98dce11f8c
6 changed files with 21 additions and 8 deletions

View file

@ -44,7 +44,7 @@ ControllerInterface g_controller_interface;
void ControllerInterface::Initialize(void* const hwnd)
{
if (m_is_init)
return;
DeInit();
m_hwnd = hwnd;
@ -102,6 +102,11 @@ void ControllerInterface::Shutdown()
delete d;
}
DeInit();
}
void ControllerInterface::DeInit()
{
m_devices.clear();
#ifdef CIFACE_USE_XINPUT