input: remove inconvenient pad mutex

It takes too long to wait for some handlers after all, causing stutter.
This commit is contained in:
Megamouse 2021-08-29 08:40:39 +02:00
parent 2eb0d19a75
commit a33b2afe08
1 changed files with 36 additions and 40 deletions

View File

@ -226,9 +226,6 @@ void pad_thread::ThreadFunc()
u32 connected_devices = 0; u32 connected_devices = 0;
{
std::lock_guard lock(pad::g_pad_mutex);
for (auto& cur_pad_handler : handlers) for (auto& cur_pad_handler : handlers)
{ {
cur_pad_handler.second->ThreadProc(); cur_pad_handler.second->ThreadProc();
@ -279,7 +276,6 @@ void pad_thread::ThreadFunc()
{ {
m_info.ignore_input = false; m_info.ignore_input = false;
} }
}
std::this_thread::sleep_for(1ms); std::this_thread::sleep_for(1ms);
} }