mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02: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:
@ -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
|
||||
|
@ -117,6 +117,9 @@ public:
|
||||
void Initialize(void* const hwnd);
|
||||
void Reinitialize();
|
||||
void Shutdown();
|
||||
|
||||
void DeInit();
|
||||
|
||||
bool IsInit() const { return m_is_init; }
|
||||
|
||||
void UpdateReference(ControlReference* control, const ciface::Core::DeviceQualifier& default_device) const;
|
||||
|
Reference in New Issue
Block a user