diff options
| author | skidau <skidau@gmail.com> | 2015-03-21 12:46:37 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-03-21 12:46:37 +1100 |
| commit | 63c4bd665e66ba0aba31ed26c7e3eac38afd6cdb (patch) | |
| tree | 14ea7fbca561ef7bc822ff5de17d5fdd85540868 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | |
| parent | 94e435afbc09ea28ed2f536362a716bb3c22b9c6 (diff) | |
| parent | 98dce11f8c226ef20a660ec7aa9eb0148999dc8c (diff) | |
Merge pull request #2230 from skidau/Mouse-In-Separate-Window
Updated the input plugins reference of hwnd on game start.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp index 1330cb1e0a..a3c14a0ab5 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp @@ -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 |
