diff options
| author | skidau <skidau@gmail.com> | 2015-03-28 22:55:39 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-03-28 22:55:39 +1100 |
| commit | c45ffa937eb79848002a29948eade27065a03ad2 (patch) | |
| tree | 56b5775a3c2e7167e5b492a34a245ffc7e933382 /Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | |
| parent | 74f25ad8ecef9315add7983f7c98b182a7771e45 (diff) | |
| parent | 9947324296d942897b5248bd5651cddbd9078751 (diff) | |
Merge pull request #2246 from skidau/sdl-init-crash
Use WindowFromPoint to track the mouse in DInput
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.cpp index a3c14a0ab5..1330cb1e0a 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) - DeInit(); + return; m_hwnd = hwnd; @@ -102,11 +102,6 @@ void ControllerInterface::Shutdown() delete d; } - DeInit(); -} - -void ControllerInterface::DeInit() -{ m_devices.clear(); #ifdef CIFACE_USE_XINPUT |
