summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
diff options
context:
space:
mode:
authorFiloppi <filippotarpini@hotmail.it>2021-05-15 11:32:00 +0300
committerFiloppi <filippotarpini@hotmail.it>2021-06-07 11:07:05 +0300
commitf90d851e2519d46f62e2037896053bc546e7133b (patch)
treeadb9a2b7b18c5581aa4b995fc2cea4ddd25a233d /Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
parentc285ae57fb0027a3e6da12b7097e15e0485ee526 (diff)
ControllerInterface: mixed comments
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
index ebe2e84286..bc1820b8ad 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp
@@ -91,6 +91,11 @@ KeyboardMouse::~KeyboardMouse()
{
s_keyboard_mouse_exists = false;
+ // Independently of the order in which we do these, if we put a breakpoint on Unacquire() (or in
+ // any place in the call stack before this), when refreshing devices from the UI, on the second
+ // attempt, it will get stuck in an infinite (while) loop inside dinput8.dll. Given that it can't
+ // be otherwise be reproduced (not even with sleeps), we can just ignore the problem.
+
// kb
m_kb_device->Unacquire();
m_kb_device->Release();